diff options
author | Ian Lance Taylor <ian@airs.com> | 1995-09-28 16:36:34 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1995-09-28 16:36:34 +0000 |
commit | 5753006bf045fa872b7e7b377b6fe4e299305b69 (patch) | |
tree | 064df0fe783d3f40e92f7f37e0a3e0d9fc338c40 /ld/emultempl | |
parent | 9db5923077da3e471b36b26ea17427e95ee7c67b (diff) | |
download | gdb-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/emultempl')
-rw-r--r-- | ld/emultempl/sunos.em | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ld/emultempl/sunos.em b/ld/emultempl/sunos.em index ffdf098..fc98092 100644 --- a/ld/emultempl/sunos.em +++ b/ld/emultempl/sunos.em @@ -334,7 +334,7 @@ gld${EMULATION_NAME}_before_allocation () lang_for_each_input_file (gld${EMULATION_NAME}_set_need); - ASSERT (need_pnames - sneed->contents == need_size); + ASSERT ((bfd_size_type) (need_pnames - sneed->contents) == need_size); } if (srules != NULL) @@ -540,6 +540,8 @@ cat >>e${EMULATION_NAME}.c <<EOF return `sed "$sc" ldscripts/${EMULATION_NAME}.xbn`; else if (!config.magic_demand_paged) return `sed "$sc" ldscripts/${EMULATION_NAME}.xn`; + else if (link_info.shared) + return `sed "$sc" ldscripts/${EMULATION_NAME}.xs`; else return `sed "$sc" ldscripts/${EMULATION_NAME}.x`; } @@ -560,6 +562,8 @@ cat >>e${EMULATION_NAME}.c <<EOF return "ldscripts/${EMULATION_NAME}.xbn"; else if (!config.magic_demand_paged) return "ldscripts/${EMULATION_NAME}.xn"; + else if (link_info.shared) + return "ldscripts/${EMULATION_NAME}.xs"; else return "ldscripts/${EMULATION_NAME}.x"; } |