mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-23 10:03:47 +08:00
Microblaze linker segmentation fault
PR 24596 * elf32-microblaze.c (microblaze_elf_finish_dynamic_sections): Don't attempt to set sh_entsize for excluded PLT section.
This commit is contained in:
parent
28fbeab806
commit
94667ab146
@ -1,3 +1,9 @@
|
||||
2019-05-28 Alan Modra <amodra@gmail.com>
|
||||
|
||||
PR 24596
|
||||
* elf32-microblaze.c (microblaze_elf_finish_dynamic_sections): Don't
|
||||
attempt to set sh_entsize for excluded PLT section.
|
||||
|
||||
2019-05-28 Alan Modra <amodra@gmail.com>
|
||||
|
||||
PR 24596
|
||||
|
@ -3455,9 +3455,10 @@ microblaze_elf_finish_dynamic_sections (bfd *output_bfd,
|
||||
memset (splt->contents, 0, PLT_ENTRY_SIZE);
|
||||
bfd_put_32 (output_bfd, (bfd_vma) 0x80000000 /* nop. */,
|
||||
splt->contents + splt->size - 4);
|
||||
}
|
||||
|
||||
elf_section_data (splt->output_section)->this_hdr.sh_entsize = 4;
|
||||
if (splt->output_section != bfd_abs_section_ptr)
|
||||
elf_section_data (splt->output_section)->this_hdr.sh_entsize = 4;
|
||||
}
|
||||
}
|
||||
|
||||
/* Set the first entry in the global offset table to the address of
|
||||
|
Loading…
Reference in New Issue
Block a user