[PATCH] Fix librtld.map sed script

Luca Barbieri ldb@ldb.ods.org
Sat Nov 23 11:30:00 GMT 2002


The sed script processing librtld.map in glibc cvs fails to parse the
case when the name of the object and the referencing object+function
name are on the same line.

Example:
../libc_pic.a(check_fds.os)   dl-allobjs.os (__libc_check_standard_fds)
../libc_pic.a(errno.os)       ../libc_pic.a(check_fds.os) (__libc_errno)
../libc_pic.a(divdi3.os)      dl-allobjs.os (__udivdi3)


The following patch fixes the problem and allows me to successfully
compile the 23/11/2002 cvs glibc.

--- libc/elf/Makefile.~1.244.~	2002-11-22 01:35:50.000000000 +0100
+++ libc/elf/Makefile	2002-11-23 16:30:54.000000000 +0100
@@ -200,7 +200,7 @@
 	mv -f $@T $@

 $(objpfx)librtld.mk: $(objpfx)librtld.map Makefile
-	sed -n 's@^$(common-objpfx)\([^(]*\)(\(.*.os\))$$@\1 \2@p' $< | \
+	sed -n 's@^$(common-objpfx)\([^(]*\)(\([^)]*.os\)).*$$@\1 \2@p' $< | \
 	while read lib file; do \
 	  case $$lib in \
 	  libc_pic.a) \

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20021123/db5c03e5/attachment.sig>


More information about the Libc-alpha mailing list