Fix AArch64 in the same way as other targets updated in 8170f7693bc0a9442c0aa280197925db92d48ca6.
PR ld/19579 * elfnn-aarch64.c (elfNN_aarch64_finish_dynamic_symbol): Check ELF_COMMON_DEF_P for common symbols.
This commit is contained in:
parent
ae0d01d663
commit
0ee3a6dbd0
@ -1,3 +1,9 @@
|
||||
2017-06-06 James Clarke <jrtc27@jrtc27.com>
|
||||
|
||||
PR ld/19579
|
||||
* elfnn-aarch64.c (elfNN_aarch64_finish_dynamic_symbol): Check
|
||||
ELF_COMMON_DEF_P for common symbols.
|
||||
|
||||
2017-06-06 Andrew Burgess <andrew.burgess@embecosm.com>
|
||||
|
||||
* elf.c (_bfd_elf_make_section_from_shdr): Don't initially mark
|
||||
|
@ -8949,7 +8949,7 @@ elfNN_aarch64_finish_dynamic_symbol (bfd *output_bfd,
|
||||
}
|
||||
else if (bfd_link_pic (info) && SYMBOL_REFERENCES_LOCAL (info, h))
|
||||
{
|
||||
if (!h->def_regular)
|
||||
if (!(h->def_regular || ELF_COMMON_DEF_P (h)))
|
||||
return FALSE;
|
||||
|
||||
BFD_ASSERT ((h->got.offset & 1) != 0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user