aboutsummaryrefslogtreecommitdiff
path: root/ld/scripttempl/elf.sc
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2003-10-10 01:36:36 +0000
committerH.J. Lu <hjl.tools@gmail.com>2003-10-10 01:36:36 +0000
commitc6d3b05fe766fe33bb96b8850559c9ada7296dd4 (patch)
treeb2731532b029ee3e184786a2dee6ff5be2ed794f /ld/scripttempl/elf.sc
parentf3efb16c923fd25de53256da02964bc997c1e23d (diff)
downloadgdb-c6d3b05fe766fe33bb96b8850559c9ada7296dd4.zip
gdb-c6d3b05fe766fe33bb96b8850559c9ada7296dd4.tar.gz
gdb-c6d3b05fe766fe33bb96b8850559c9ada7296dd4.tar.bz2
2003-10-09 H.J. Lu <hongjiu.lu@intel.com>
* scripttempl/elf.sc (__executable_start): Provide.
Diffstat (limited to 'ld/scripttempl/elf.sc')
-rw-r--r--ld/scripttempl/elf.sc2
1 files changed, 1 insertions, 1 deletions
diff --git a/ld/scripttempl/elf.sc b/ld/scripttempl/elf.sc
index a63ef94..187a289 100644
--- a/ld/scripttempl/elf.sc
+++ b/ld/scripttempl/elf.sc
@@ -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}}