summary refs log tree commit diff
path: root/scripts
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-12-07 21:55:12 +0000
committerRoland McGrath <roland@gnu.org>2002-12-07 21:55:12 +0000
commitcc1b826866c65da5f902e5e037acccc6e4940e05 (patch)
tree6f88e071ed160ec3a5ab2aca661b3efcbe7e083f /scripts
parent99343c05798b1b2c743b6d6b923b01a5fe32a8bd (diff)
downloadglibc-cc1b826866c65da5f902e5e037acccc6e4940e05.tar.gz
glibc-cc1b826866c65da5f902e5e037acccc6e4940e05.tar.xz
glibc-cc1b826866c65da5f902e5e037acccc6e4940e05.zip
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.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/output-format.sed34
1 files changed, 34 insertions, 0 deletions
diff --git a/scripts/output-format.sed b/scripts/output-format.sed
new file mode 100644
index 0000000000..f083a0911c
--- /dev/null
+++ b/scripts/output-format.sed
@@ -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