Replace crtendS.o with crtend.o for static link
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 24 Sep 2012 18:25:57 +0000 (11:25 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 24 Sep 2012 18:25:57 +0000 (11:25 -0700)
ChangeLog
Makeconfig

index e3329b4..8c7dfe6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
 
+       * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
+
        [BZ #14562]
        * malloc/arena.c (heap_trim): Properly get fencepost and adjust
        new chunk size with MALLOC_ALIGN_MASK.
index 8d4f7b4..42b836e 100644 (file)
@@ -581,7 +581,7 @@ endif
 +postctorS = `$(CC) $(sysdep-LDFLAGS) --print-file-name=crtendS.o`
 # Variants of the two previous definitions for statically linking programs.
 +prectorT = `$(CC) $(sysdep-LDFLAGS) --print-file-name=crtbeginT.o`
-+postctorT = `$(CC) $(sysdep-LDFLAGS) --print-file-name=crtendS.o`
++postctorT = `$(CC) $(sysdep-LDFLAGS) --print-file-name=crtend.o`
 +interp = $(addprefix $(elf-objpfx),interp.os)
 csu-objpfx = $(common-objpfx)csu/
 elf-objpfx = $(common-objpfx)elf/