OSDN Git Service

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

ld/ChangeLog
ld/scripttempl/elf.sc

index 0e2d2c4..00840ad 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 a63ef94..187a289 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}}