diff options
author | Nick Clifton <nickc@redhat.com> | 1999-06-29 02:45:00 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 1999-06-29 02:45:00 +0000 |
commit | a0290afa962321b2aee197dedfdefbb11b98ed98 (patch) | |
tree | 235ef097d767ab56ad57edb0f2d53e1be04fb9b7 /ld/emultempl/armelf.em | |
parent | 4eb4387d5ecd923a812005e15399fa0a2d5c1842 (diff) | |
download | gdb-a0290afa962321b2aee197dedfdefbb11b98ed98.zip gdb-a0290afa962321b2aee197dedfdefbb11b98ed98.tar.gz gdb-a0290afa962321b2aee197dedfdefbb11b98ed98.tar.bz2 |
Patch from: Jim Pick <jim@jimpick.com>
Added code so that .xs linker scripts are called so that ARM shared libraries
are built correctly.
CVS: ----------------------------------------------------------------------
Diffstat (limited to 'ld/emultempl/armelf.em')
-rw-r--r-- | ld/emultempl/armelf.em | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ld/emultempl/armelf.em b/ld/emultempl/armelf.em index 6e3cfa6..88d7e27 100644 --- a/ld/emultempl/armelf.em +++ b/ld/emultempl/armelf.em @@ -1215,6 +1215,10 @@ echo ' ; else if (!config.text_read_only) return' >> e${EMULATION_NAME} sed $sc ldscripts/${EMULATION_NAME}.xbn >> e${EMULATION_NAME}.c echo ' ; else if (!config.magic_demand_paged) return' >> e${EMULATION_NAME}.c sed $sc ldscripts/${EMULATION_NAME}.xn >> e${EMULATION_NAME}.c +if test -n "$GENERATE_SHLIB_SCRIPT" ; then + echo ' ; else if (link_info.shared) return' >> e${EMULATION_NAME}.c + sed $sc ldscripts/${EMULATION_NAME}.xs >> e${EMULATION_NAME}.c +fi echo ' ; else return' >> e${EMULATION_NAME}.c sed $sc ldscripts/${EMULATION_NAME}.x >> e${EMULATION_NAME}.c echo '; }' >> e${EMULATION_NAME}.c @@ -1234,6 +1238,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"; } |