2003-10-09 H.J. Lu <hongjiu.lu@intel.com>
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 10 Oct 2003 01:36:36 +0000 (01:36 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 10 Oct 2003 01:36:36 +0000 (01:36 +0000)
* scripttempl/elf.sc (__executable_start): Provide.

ld/ChangeLog
ld/scripttempl/elf.sc

index 0e2d2c46f1a9863993906e2fa4ee6b10f9d88581..00840ad0b459b9b435eb52e2049a5a383129e76d 100644 (file)
@@ -1,3 +1,7 @@
+2003-10-09  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * scripttempl/elf.sc (__executable_start): Provide.
+
 2003-10-09  Daniel Jacobowitz  <drow@mvista.com>
 
        * emulparams/armelf.sh: Define NO_SMALL_DATA.
index a63ef94a22e7081609c00de6f0d05c54c4a8b83f..187a289d1f57494e2bdfb1018886b761a6582297 100644 (file)
@@ -182,7 +182,7 @@ ${RELOCATING- /* For some reason, the Solaris linker makes bad executables
 SECTIONS
 {
   /* Read-only sections, merged into text segment: */
-  ${CREATE_SHLIB-${CREATE_PIE-${RELOCATING+. = ${TEXT_BASE_ADDRESS};}}}
+  ${CREATE_SHLIB-${CREATE_PIE-${RELOCATING+PROVIDE (__executable_start = ${TEXT_START_ADDR}); . = ${TEXT_BASE_ADDRESS};}}}
   ${CREATE_SHLIB+${RELOCATING+. = ${SHLIB_TEXT_START_ADDR:-0} + SIZEOF_HEADERS;}}
   ${CREATE_PIE+${RELOCATING+. = ${SHLIB_TEXT_START_ADDR:-0} + SIZEOF_HEADERS;}}
   ${CREATE_SHLIB-${INTERP}}