No empty .Rs/.Re
[netbsd-mini2440.git] / sys / conf / mkldscript.sh
blob82e395dc275fbf4a5361489a0ec49732bb9416f3
1 #!/bin/sh
2 # $NetBSD$
4 TEMPLATE=$1
5 shift
7 SETS=`$OBJDUMP -x $* | fgrep "RELOCATION RECORDS FOR [link_set" | \
8 sort -u | sed 's/^.*\[\(.*\)\]:$/\1/'`
10 for s in $SETS; do
11 printf " . = ALIGN(4);\n"
12 printf " PROVIDE (__start_%s = .);\n" $s
13 printf " *(%s)\n" $s
14 printf " PROVIDE (__stop_%s = .);\n" $s
15 done