aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@gcc.gnu.org>2018-01-30 00:13:51 +0100
committerEric Botcazou <ebotcazou@gcc.gnu.org>2018-01-30 00:13:51 +0100
commitd85815e2d16f7c042d7912f1fa85bf1b9c28ca44 (patch)
treedd849fa88569d0169d1a98e975a208fb8661831a /ld
parent86b24e15c45bfe5085ed88280e1a5479120edce6 (diff)
downloadgdb-d85815e2d16f7c042d7912f1fa85bf1b9c28ca44.zip
gdb-d85815e2d16f7c042d7912f1fa85bf1b9c28ca44.tar.gz
gdb-d85815e2d16f7c042d7912f1fa85bf1b9c28ca44.tar.bz2
Fix PR gas/22738 (.dc.a directive has wrong size on SPARC 64-bit).
The .dc.a directive has wrong size (32 bits) on SPARC 64-bit because the assembler sets the correct BFD architecture only at the very end of the processing and it's too late for the directive. It's fixed by defining TARGET_MACH and making it return a sensible default value. gas/ * config/tc-sparc.h (sparc_mach): Declare. (TARGET_MACH): Define to above. * config/tc-sparc.c (sparc_mach): New function. (sparc_md_end): Minor tweak. ld/ * testsuite/ld-elf/pr22450.d: Remove reference to SPARC64.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog4
-rw-r--r--ld/testsuite/ld-elf/pr22450.d2
2 files changed, 5 insertions, 1 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index d9e0c4f..c806643 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,7 @@
+2018-01-29 Eric Botcazou <ebotcazou@adacore.com>
+
+ * testsuite/ld-elf/pr22450.d: Remove reference to SPARC64.
+
2018-01-29 Maciej W. Rozycki <macro@mips.com>
* testsuite/ld-mips-elf/comm-data.exp: Correct support for
diff --git a/ld/testsuite/ld-elf/pr22450.d b/ld/testsuite/ld-elf/pr22450.d
index 26853bc..5b219b7 100644
--- a/ld/testsuite/ld-elf/pr22450.d
+++ b/ld/testsuite/ld-elf/pr22450.d
@@ -2,7 +2,7 @@
#readelf: --notes --wide
#ld: -r
# Fails on H8300 because it does not generate the correct relocs for the size fields.
-# Fails on AVR, IP2K, M68HC11, SPARC64, XC16C because the assembler does not calculate the correct values for the differences of local symbols.
+# Fails on AVR, IP2K, M68HC11, XC16C because the assembler does not calculate the correct values for the differences of local symbols.
# Fails on CRX because readelf does not know how to apply CRX reloc number 20 (R_CRX_SWITCH32).
#...