[SPARC] Fix PR/18841

Eric Botcazou ebotcazou@adacore.com
Tue Jan 29 11:12:00 GMT 2019


Hi,

this fixes the last ld failures on SPARC64/Linux:

FAIL: Run pr18841 with libpr18841b.so
FAIL: Run pr18841 with libpr18841c.so
FAIL: Run pr18841 with libpr18841bn.so (-z now)
FAIL: Run pr18841 with libpr18841cn.so (-z now)

by mimicing what has been done on x86-64 and Aarch64 to fix the PR.

Tested on SPARC64/Linux, OK for mainline, 2.32 and 2.31 branches?


2019-01-29  Eric Botcazou  <ebotcazou@adacore.com>

bfd/
	PR ld/18841
	* elf32-sparc.c (elf32_sparc_reloc_type_class): Return
	reloc_class_ifunc for ifunc symbols.
	* elf64-sparc.c (elf64_sparc_reloc_type_class): Likewise.

-- 
Eric Botcazou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr18841.diff
Type: text/x-patch
Size: 3251 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20190129/738b47e9/attachment.bin>


More information about the Binutils mailing list