[prev in list] [next in list] [prev in thread] [next in thread]
List: binutils-cvs
Subject: [binutils-gdb] v850 linker scripts
From: Alan Modra <amodra () sourceware ! org>
Date: 2016-09-30 8:55:54
Message-ID: 20160930085554.118220.qmail () sourceware ! org
[Download RAW message or body]
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=76276ff673e9d6855d721e4caf19a244c8b7363d
commit 76276ff673e9d6855d721e4caf19a244c8b7363d
Author: Alan Modra <amodra@gmail.com>
Date: Fri Sep 30 17:52:48 2016 +0930
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.
Diff:
---
ld/ChangeLog | 6 ++++++
ld/scripttempl/v850.sc | 2 +-
ld/scripttempl/v850_rh850.sc | 2 +-
3 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 99ca2e5..3ad2a7a 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,5 +1,11 @@
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
* testsuite/ld-elf/pr20528a.d: xfail generic elf targets. Allow
multiple .text sections for hppa-linux.
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic