v850 linker scripts
authorAlan Modra <amodra@gmail.com>
Fri, 30 Sep 2016 08:22:48 +0000 (17:52 +0930)
committerAlan Modra <amodra@gmail.com>
Fri, 30 Sep 2016 08:23:27 +0000 (17:53 +0930)
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.

ld/ChangeLog
ld/scripttempl/v850.sc
ld/scripttempl/v850_rh850.sc

index 99ca2e5fded4ca8f4eecb99b6932d5b4c0d13442..3ad2a7affa6f556aab36e06f98d234bbc55ac7ae 100644 (file)
@@ -1,3 +1,9 @@
+2016-09-30  Alan Modra  <amodra@gmail.com>
+
+       * scripttempl/v850.sc: Don't reference __ctbp, __ep, __gp when
+       not relocating.
+       * scripttempl/v850_rh850.sc: Likewise.
+
 2016-09-30  Alan Modra  <amodra@gmail.com>
 
        PR ld/20528
index cf7cd20aada4659580b784c2ad834159d3a1b948..9ff5e9a60c2e682fa163547a875f2f7ffd82a236 100644 (file)
@@ -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
index a44b9b5f5b849f872b1188af0a4dc1829a9d339c..b54e95662a03d221887dbf1cb9c8c9bad64537bb 100644 (file)
@@ -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
This page took 0.051673 seconds and 4 git commands to generate.