aboutsummaryrefslogtreecommitdiff
path: root/ld/scripttempl/aout.sc
diff options
context:
space:
mode:
Diffstat (limited to 'ld/scripttempl/aout.sc')
-rw-r--r--ld/scripttempl/aout.sc7
1 files changed, 3 insertions, 4 deletions
diff --git a/ld/scripttempl/aout.sc b/ld/scripttempl/aout.sc
index f11deea..fcfed01 100644
--- a/ld/scripttempl/aout.sc
+++ b/ld/scripttempl/aout.sc
@@ -1,15 +1,14 @@
cat <<EOF
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
OUTPUT_ARCH(${ARCH})
-
${RELOCATING+${LIB_SEARCH_DIRS}}
${STACKZERO+${RELOCATING+${STACKZERO}}}
${SHLIB_PATH+${RELOCATING+${SHLIB_PATH}}}
+${RELOCATING+${EXECUTABLE_SYMBOLS}}
+PROVIDE (__stack = 0);
SECTIONS
{
- ${CREATE_SHLIB-${RELOCATING+. = ${TEXT_START_ADDR};}}
- ${CREATE_SHLIB+${RELOCATING+. = SIZEOF_HEADERS;}}
- .text :
+ .text ${TEXT_START_ADDR} :
{
CREATE_OBJECT_SYMBOLS
*(.text)