mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-23 03:29:47 +08:00
Fix the genetation of GOT entries for the Microblaze target.
PR target/19516 * elf32-microblaze.c (microblaze_elf_finish_dynamic_symbol): Always produce a RELATIVE reloc for a local symbol.
This commit is contained in:

committed by
Nick Clifton

parent
c955ae7389
commit
47993b4af1
@ -1,3 +1,9 @@
|
||||
2016-02-23 Rich Felker <bugdal@aerifal.cx>
|
||||
|
||||
PR target/19516
|
||||
* elf32-microblaze.c (microblaze_elf_finish_dynamic_symbol):
|
||||
Always produce a RELATIVE reloc for a local symbol.
|
||||
|
||||
2016-02-23 Hans-Peter Nilsson <hp@axis.com>
|
||||
|
||||
Fix test-case ld-elf/pr19617b
|
||||
|
@ -3296,8 +3296,8 @@ microblaze_elf_finish_dynamic_symbol (bfd *output_bfd,
|
||||
The entry in the global offset table will already have been
|
||||
initialized in the relocate_section function. */
|
||||
if (bfd_link_pic (info)
|
||||
&& (info->symbolic || h->dynindx == -1)
|
||||
&& h->def_regular)
|
||||
&& ((info->symbolic && h->def_regular)
|
||||
|| h->dynindx == -1))
|
||||
{
|
||||
asection *sec = h->root.u.def.section;
|
||||
microblaze_elf_output_dynamic_relocation (output_bfd,
|
||||
|
Reference in New Issue
Block a user