diff options
author | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2018-01-30 00:13:51 +0100 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2018-01-30 00:13:51 +0100 |
commit | d85815e2d16f7c042d7912f1fa85bf1b9c28ca44 (patch) | |
tree | dd849fa88569d0169d1a98e975a208fb8661831a /ld/testsuite | |
parent | 86b24e15c45bfe5085ed88280e1a5479120edce6 (diff) | |
download | gdb-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/testsuite')
-rw-r--r-- | ld/testsuite/ld-elf/pr22450.d | 2 |
1 files changed, 1 insertions, 1 deletions
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). #... |