aboutsummaryrefslogtreecommitdiff
path: root/ld/scripttempl
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2016-09-30 17:52:48 +0930
committerAlan Modra <amodra@gmail.com>2016-09-30 17:53:27 +0930
commit76276ff673e9d6855d721e4caf19a244c8b7363d (patch)
treeb475fc9a146ce46443bada4769b412118d18436a /ld/scripttempl
parent80169c8a23d9bd3f213028e3d44239b03d0aedf7 (diff)
downloadgdb-76276ff673e9d6855d721e4caf19a244c8b7363d.zip
gdb-76276ff673e9d6855d721e4caf19a244c8b7363d.tar.gz
gdb-76276ff673e9d6855d721e4caf19a244c8b7363d.tar.bz2
v850 linker scripts
This should mean the 2010-10-28 change for ld -r --gc-sections can be reverted. * scripttempl/v850.sc: Don't reference __ctbp, __ep, __gp when not relocating. * scripttempl/v850_rh850.sc: Likewise.
Diffstat (limited to 'ld/scripttempl')
-rw-r--r--ld/scripttempl/v850.sc2
-rw-r--r--ld/scripttempl/v850_rh850.sc2
2 files changed, 2 insertions, 2 deletions
diff --git a/ld/scripttempl/v850.sc b/ld/scripttempl/v850.sc
index cf7cd20..9ff5e9a 100644
--- a/ld/scripttempl/v850.sc
+++ b/ld/scripttempl/v850.sc
@@ -16,7 +16,7 @@ OUTPUT_FORMAT("elf32-v850", "elf32-v850",
OUTPUT_ARCH(v850:old-gcc-abi)
${RELOCATING+ENTRY(_start)}
SEARCH_DIR(.);
-EXTERN(__ctbp __ep __gp);
+${RELOCATING+EXTERN(__ctbp __ep __gp)};
SECTIONS
{
/* This saves a little space in the ELF file, since the zda starts
diff --git a/ld/scripttempl/v850_rh850.sc b/ld/scripttempl/v850_rh850.sc
index a44b9b5..b54e956 100644
--- a/ld/scripttempl/v850_rh850.sc
+++ b/ld/scripttempl/v850_rh850.sc
@@ -16,7 +16,7 @@ OUTPUT_FORMAT("elf32-v850-rh850", "elf32-v850-rh850",
OUTPUT_ARCH(v850:rh850)
${RELOCATING+ENTRY(_start)}
SEARCH_DIR(.);
-EXTERN(__ctbp __ep __gp);
+${RELOCATING+EXTERN(__ctbp __ep __gp)};
SECTIONS
{
/* This saves a little space in the ELF file, since the zda starts