4f4391e397
merge link_set_* sections into the text section for a.out kernels, from sys/arch/arm/conf/ to sys/conf/ since there is no ARM specific stuff in it and other ports would share it.
16 lines
408 B
Bash
16 lines
408 B
Bash
#!/bin/sh
|
|
# $NetBSD: mkldscript.sh,v 1.1 2007/03/04 02:35:49 tsutsui Exp $
|
|
|
|
TEMPLATE=$1
|
|
shift
|
|
|
|
SETS=`$OBJDUMP -x $* | fgrep "RELOCATION RECORDS FOR [link_set" | \
|
|
sort -u | sed 's/^.*\[\(.*\)\]:$/\1/'`
|
|
|
|
for s in $SETS; do
|
|
printf " . = ALIGN(4);\n"
|
|
printf " PROVIDE (__start_%s = .);\n" $s
|
|
printf " *(%s)\n" $s
|
|
printf " PROVIDE (__stop_%s = .);\n" $s
|
|
done
|