[SPARC] Fix PR gas/22738
Eric Botcazou
ebotcazou@adacore.com
Thu Jan 25 17:31:00 GMT 2018
Hi,
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.
This was reported by H.J. very likely because of the failure of PR ld/22450
and this indeed fixes the failure. Tested on SPARC64/Linux, OK for mainline?
2018-01-25 Eric Botcazou <ebotcazou@adacore.com>
gas/
PR gas/22738
* 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.
2018-01-25 Eric Botcazou <ebotcazou@adacore.com>
ld/
* testsuite/ld-elf/pr22450.d: Remove reference to SPARC64.
--
Eric Botcazou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr22738.diff
Type: text/x-patch
Size: 2253 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20180125/197ddf38/attachment.bin>
More information about the Binutils
mailing list