aboutsummaryrefslogtreecommitdiff
path: root/ld/scripttempl
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1995-09-28 16:36:34 +0000
committerIan Lance Taylor <ian@airs.com>1995-09-28 16:36:34 +0000
commit5753006bf045fa872b7e7b377b6fe4e299305b69 (patch)
tree064df0fe783d3f40e92f7f37e0a3e0d9fc338c40 /ld/scripttempl
parent9db5923077da3e471b36b26ea17427e95ee7c67b (diff)
downloadgdb-5753006bf045fa872b7e7b377b6fe4e299305b69.zip
gdb-5753006bf045fa872b7e7b377b6fe4e299305b69.tar.gz
gdb-5753006bf045fa872b7e7b377b6fe4e299305b69.tar.bz2
* lexsup.c (parse_args): Handle -assert.
* emulparams/sun4.sh (GENERATE_SHLIB_SCRIPT): Define. * emultempl/sunos.em (gld${EMULATION_NAME}_get_script): Use the shared library script when appropriate. * scripttempl/aout.sc: If CREATE_SHLIB is set, start the .text section at SIZEOF_HEADERS.
Diffstat (limited to 'ld/scripttempl')
-rw-r--r--ld/scripttempl/aout.sc14
1 files changed, 9 insertions, 5 deletions
diff --git a/ld/scripttempl/aout.sc b/ld/scripttempl/aout.sc
index 59e71fb..f11deea 100644
--- a/ld/scripttempl/aout.sc
+++ b/ld/scripttempl/aout.sc
@@ -7,7 +7,9 @@ ${STACKZERO+${RELOCATING+${STACKZERO}}}
${SHLIB_PATH+${RELOCATING+${SHLIB_PATH}}}
SECTIONS
{
- .text ${RELOCATING+${TEXT_START_ADDR}}:
+ ${CREATE_SHLIB-${RELOCATING+. = ${TEXT_START_ADDR};}}
+ ${CREATE_SHLIB+${RELOCATING+. = SIZEOF_HEADERS;}}
+ .text :
{
CREATE_OBJECT_SYMBOLS
*(.text)
@@ -19,22 +21,24 @@ SECTIONS
*(.dynstr)
*(.rules)
*(.need)
+ ${RELOCATING+_etext = .;}
+ ${RELOCATING+__etext = .;}
${PAD_TEXT+${RELOCATING+. = ${DATA_ALIGNMENT};}}
- ${RELOCATING+_etext = ${DATA_ALIGNMENT};}
- ${RELOCATING+__etext = ${DATA_ALIGNMENT};}
}
- .data ${RELOCATING+${DATA_ALIGNMENT}} :
+ ${RELOCATING+. = ${DATA_ALIGNMENT};}
+ .data :
{
/* The first three sections are for SunOS dynamic linking. */
*(.dynamic)
*(.got)
*(.plt)
*(.data)
+ *(.linux-dynamic) /* For Linux dynamic linking. */
${CONSTRUCTING+CONSTRUCTORS}
${RELOCATING+_edata = .;}
${RELOCATING+__edata = .;}
}
- .bss ${RELOCATING+SIZEOF(.data) + ADDR(.data)} :
+ .bss :
{
${RELOCATING+ __bss_start = .};
*(.bss)