This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix librtld.map sed script


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) \

Attachment: signature.asc
Description: This is a digitally signed message part


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]