From: H.J. Lu Date: Fri, 10 Oct 2003 01:36:36 +0000 (+0000) Subject: 2003-10-09 H.J. Lu X-Git-Tag: gdb_6_1-branchpoint~1254 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c6d3b05fe766fe33bb96b8850559c9ada7296dd4;p=thirdparty%2Fbinutils-gdb.git 2003-10-09 H.J. Lu * scripttempl/elf.sc (__executable_start): Provide. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index 0e2d2c46f1a..00840ad0b45 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,7 @@ +2003-10-09 H.J. Lu + + * scripttempl/elf.sc (__executable_start): Provide. + 2003-10-09 Daniel Jacobowitz * emulparams/armelf.sh: Define NO_SMALL_DATA. diff --git a/ld/scripttempl/elf.sc b/ld/scripttempl/elf.sc index a63ef94a22e..187a289d1f5 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}}