Fix AArch64 in the same way as other targets updated in 8170f7693b
.
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>
|
2017-06-06 Andrew Burgess <andrew.burgess@embecosm.com>
|
||||||
|
|
||||||
* elf.c (_bfd_elf_make_section_from_shdr): Don't initially mark
|
* 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))
|
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;
|
return FALSE;
|
||||||
|
|
||||||
BFD_ASSERT ((h->got.offset & 1) != 0);
|
BFD_ASSERT ((h->got.offset & 1) != 0);
|
||||||
|
|
Loading…
Reference in New Issue