2002-12-07 Roland McGrath <roland@redhat.com>

* Makerules ($(common-objpfx)format.lds): New target.
	(common-generated): Add it.
	($(inst_libdir)/libc.so): Depend on that, and cat it into the result.
	* scripts/output-format.sed: New file.
	* Makefile (distribute): Add it.
This commit is contained in:
Roland McGrath 2002-12-07 21:55:12 +00:00
parent 99343c0579
commit cc1b826866
3 changed files with 1302 additions and 1251 deletions

View File

@ -279,7 +279,8 @@ distribute := README README.libm INSTALL FAQ FAQ.in NOTES NEWS BUGS \
mkinstalldirs move-if-change install-sh \
test-installation.pl gen-FAQ.pl versions.awk\
gen-sorted.awk abi-versions.awk abilist.awk \
firstversions.awk documented.sh cpp)
firstversions.awk documented.sh cpp \
output-format.sed)
distribute := $(strip $(distribute))
generated := $(generated) stubs.h

2516
Makerules

File diff suppressed because it is too large Load Diff

34
scripts/output-format.sed Normal file
View File

@ -0,0 +1,34 @@
/ld.*[ ]-E[BL]/b f
/collect.*[ ]-E[BL]/b f
/OUTPUT_FORMAT[^)]*$/{N
s/\n[ ]*/ /
}
t o
: o
s/^.*OUTPUT_FORMAT(\([^,]*\), \1, \1).*$/OUTPUT_FORMAT(\1)/
t q
s/^.*OUTPUT_FORMAT(\([^,]*\), \([^,]*\), \([^,]*\)).*$/\2,\3/
t s
s/^.*OUTPUT_FORMAT(\([^,)]*\).*$)/OUTPUT_FORMAT(\1)/
t q
d
: s
s/"//g
G
s/\n//
s/^\([^,]*\),\([^,]*\),B/OUTPUT_FORMAT(\1)/p
s/^\([^,]*\),\([^,]*\),L/OUTPUT_FORMAT(\2)/p
/,/s/^/*** BUG in libc/scripts/output-format.sed *** /p
q
: q
s/"//g
p
q
: f
s/^.*[ ]-E\([BL]\)[ ].*$/,\1/
t h
s/^.*[ ]-E\([BL]\)$/,\1/
t h
d
: h
h