aboutsummaryrefslogtreecommitdiff
path: root/ld/emultempl
diff options
context:
space:
mode:
authorTom Rix <trix@redhat.com>2002-06-17 14:08:40 +0000
committerTom Rix <trix@redhat.com>2002-06-17 14:08:40 +0000
commit8243435612b508460efea333197bf662c403e652 (patch)
treee43144fbc2ef67875d39031989a5f871e0124dd3 /ld/emultempl
parent4c0b7915d432a3695d945ac7b9f076e66a6e6baa (diff)
downloadgdb-8243435612b508460efea333197bf662c403e652.zip
gdb-8243435612b508460efea333197bf662c403e652.tar.gz
gdb-8243435612b508460efea333197bf662c403e652.tar.bz2
Fix ld segfault for some elf targets. Fix default layout for d10v.
Diffstat (limited to 'ld/emultempl')
-rw-r--r--ld/emultempl/elf32.em4
1 files changed, 4 insertions, 0 deletions
diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em
index cfd0409..58a1ccc 100644
--- a/ld/emultempl/elf32.em
+++ b/ld/emultempl/elf32.em
@@ -1383,13 +1383,17 @@ echo ' ; else if (!config.magic_demand_paged) return' >> e${EMULATION_NAME}
sed $sc ldscripts/${EMULATION_NAME}.xn >> e${EMULATION_NAME}.c
fi
if test -n "$GENERATE_SHLIB_SCRIPT" ; then
+if test -n "$GENERATE_COMBRELOC_SCRIPT" ; then
echo ' ; else if (link_info.shared && link_info.combreloc) return' >> e${EMULATION_NAME}.c
sed $sc ldscripts/${EMULATION_NAME}.xsc >> e${EMULATION_NAME}.c
+fi
echo ' ; else if (link_info.shared) return' >> e${EMULATION_NAME}.c
sed $sc ldscripts/${EMULATION_NAME}.xs >> e${EMULATION_NAME}.c
fi
+if test -n "$GENERATE_COMBRELOC_SCRIPT" ; then
echo ' ; else if (link_info.combreloc) return' >> e${EMULATION_NAME}.c
sed $sc ldscripts/${EMULATION_NAME}.xc >> 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