repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
No empty .Rs/.Re
[netbsd-mini2440.git]
/
sys
/
conf
/
mkldscript.sh
blob
82e395dc275fbf4a5361489a0ec49732bb9416f3
1
#!/bin/sh
2
# $NetBSD$
3
4
TEMPLATE
=
$1
5
shift
6
7
SETS
=
`
$OBJDUMP
-x $* | fgrep "RELOCATION RECORDS FOR [link_set" | \
8
sort -u | sed 's/^.*\[\(.*\)\]:$/\1/'`
9
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