]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
SPARC: fix PR ld/18841
authorEric Botcazou <ebotcazou@gcc.gnu.org>
Thu, 7 Feb 2019 16:04:31 +0000 (17:04 +0100)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Thu, 7 Feb 2019 16:10:35 +0000 (17:10 +0100)
commitafbdeb58468604ede2d51fb00c4ea9850fcf2617
treefcc97300896b93d81cdccbe0c593aef0247922de
parentc1eb660f9e42ceecd56de4b4a2753c30ac365783
SPARC: fix PR ld/18841

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.

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.
bfd/ChangeLog
bfd/elf32-sparc.c
bfd/elf64-sparc.c