From: Roland McGrath Date: Thu, 25 Mar 1999 21:00:06 +0000 (+0000) Subject: Thu Mar 25 23:57:57 1999 Roland McGrath X-Git-Tag: upstream/2.20~20452 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0d29d6d60e3e3806a979f16f86aaf65739277704;p=platform%2Fupstream%2Flinaro-glibc.git Thu Mar 25 23:57:57 1999 Roland McGrath * sysdeps/mach/hurd/i386/Makefile [$(subdir) = csu] (CFLAGS-initfini.s): New variable, add -DWEAK_GMON_START. This does for Hurd/i386 what the 1998-09-08 change did for Linux/i386. --- diff --git a/ChangeLog b/ChangeLog index a3b328f..e320ec6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Thu Mar 25 23:57:57 1999 Roland McGrath + + * sysdeps/mach/hurd/i386/Makefile [$(subdir) = csu] + (CFLAGS-initfini.s): New variable, add -DWEAK_GMON_START. + This does for Hurd/i386 what the 1998-09-08 change did for Linux/i386. + 1999-03-24 Roland McGrath * Makeconfig (sysd-sorted): Use $(..) on rhs of patsubst, so this rule diff --git a/sysdeps/mach/hurd/i386/Makefile b/sysdeps/mach/hurd/i386/Makefile index 33b701d..56ee057 100644 --- a/sysdeps/mach/hurd/i386/Makefile +++ b/sysdeps/mach/hurd/i386/Makefile @@ -5,4 +5,11 @@ omit-deps += crt0 $(objpfx)crt0.o: $(objpfx)static-start.o $(objpfx)abi-note.o $(objpfx)init.o $(link-relocatable) + +# compat for libc.so.0.2 only +# This is needed to be backward-compatible with glibc-2.0.x startup code +# that was miscompiled so that it jumps to 0 if there is a nonzero +# __gmon_start__ symbol, but works if there is none. +CFLAGS-initfini.s += -DWEAK_GMON_START + endif