Fix segfault in ARC linker when generating got entries for local symbols.
authorCupertino Miranda <cmiranda@synopsys.com>
Fri, 22 Jul 2016 14:10:31 +0000 (15:10 +0100)
committerNick Clifton <nickc@redhat.com>
Fri, 22 Jul 2016 14:10:31 +0000 (15:10 +0100)
commitc02d11a585398734a2178d65a17411cd3050b9d2
treec65e3f91740c6c214a9c03d5c15388093da7589b
parent70ad8739d8ec7a79ef28305c0975df503535b88a
Fix segfault in ARC linker when generating got entries for local symbols.

bfd * arc-got.h (relocate_fix_got_relocs_for_got_info): Handle the case
where there's no elf_link_hash_entry while processing GOT_NORMAL got
entries.

ld * testsuite/ld-arc/got-01.d: New file.
* testsuite/ld-arc/got-01.s: New file.
bfd/ChangeLog
bfd/arc-got.h
ld/ChangeLog
ld/testsuite/ld-arc/got-01.d [new file with mode: 0644]
ld/testsuite/ld-arc/got-01.s [new file with mode: 0644]