[PATCH] Fix bug-atexit3 on ppc{,64}
Jakub Jelinek
jakub@redhat.com
Thu Aug 31 09:18:00 GMT 2006
Hi!
On ppc{,64} libgcc_eh.a(unwind_dw2.o) needs __libc_stack_end
and with -Wl,-z,defs this causes a failure without the following patch.
2006-08-31 Jakub Jelinek <jakub@redhat.com>
* dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add
ld.so.
--- libc/dlfcn/Makefile.jj 2006-08-22 10:42:28.000000000 +0200
+++ libc/dlfcn/Makefile 2006-08-31 11:13:53.000000000 +0200
@@ -136,7 +136,8 @@ $(objpfx)bug-atexit2.out: $(objpfx)bug-a
$(objpfx)bug-atexit2-lib.so: $(common-objpfx)libc.so \
$(common-objpfx)libc_nonshared.a
-LDLIBS-bug-atexit3-lib.so = -lstdc++ -lgcc_eh $(common-objpfx)libc_nonshared.a
+LDLIBS-bug-atexit3-lib.so = -lstdc++ -lgcc_eh $(common-objpfx)elf/ld.so \
+ $(common-objpfx)libc_nonshared.a
$(objpfx)bug-atexit3: $(libdl)
$(objpfx)bug-atexit3.out: $(objpfx)bug-atexit3-lib.so
$(objpfx)bug-atexit3-lib.so: $(common-objpfx)libc.so \
Jakub
More information about the Libc-hacker
mailing list