mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-07-01 01:45:51 +08:00
2009-06-10 Philip Blundell <philb@gnu.org>
* elf32-arm.c (elf32_arm_fix_exidx_coverage): Avoid crash if elf_sec->this_hdr == NULL.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2009-06-10 Philip Blundell <philb@gnu.org>
|
||||||
|
|
||||||
|
* elf32-arm.c (elf32_arm_fix_exidx_coverage): Avoid crash if
|
||||||
|
elf_sec->this_hdr == NULL.
|
||||||
|
|
||||||
2009-06-12 Tristan Gingold <gingold@adacore.com>
|
2009-06-12 Tristan Gingold <gingold@adacore.com>
|
||||||
|
|
||||||
* reloc.c: Add BFD_RELOC_MACH_O_SECTDIFF and BFD_RELOC_MACH_O_PAIR.
|
* reloc.c: Add BFD_RELOC_MACH_O_SECTDIFF and BFD_RELOC_MACH_O_PAIR.
|
||||||
|
@ -3175,11 +3175,12 @@ arm_type_of_stub (struct bfd_link_info *info,
|
|||||||
|
|
||||||
/* We have an extra 2-bytes reach because of
|
/* We have an extra 2-bytes reach because of
|
||||||
the mode change (bit 24 (H) of BLX encoding). */
|
the mode change (bit 24 (H) of BLX encoding). */
|
||||||
if (branch_offset > (ARM_MAX_FWD_BRANCH_OFFSET + 2)
|
if ((branch_offset > (ARM_MAX_FWD_BRANCH_OFFSET + 2)
|
||||||
|| (branch_offset < ARM_MAX_BWD_BRANCH_OFFSET)
|
|| (branch_offset < ARM_MAX_BWD_BRANCH_OFFSET)
|
||||||
|| ((r_type == R_ARM_CALL) && !globals->use_blx)
|
|| ((r_type == R_ARM_CALL) && !globals->use_blx)
|
||||||
|| (r_type == R_ARM_JUMP24)
|
|| (r_type == R_ARM_JUMP24)
|
||||||
|| (r_type == R_ARM_PLT32))
|
|| (r_type == R_ARM_PLT32))
|
||||||
|
&& !use_plt)
|
||||||
{
|
{
|
||||||
stub_type = (info->shared | globals->pic_veneer)
|
stub_type = (info->shared | globals->pic_veneer)
|
||||||
/* PIC stubs. */
|
/* PIC stubs. */
|
||||||
@ -8960,7 +8961,7 @@ elf32_arm_fix_exidx_coverage (asection **text_section_order,
|
|||||||
struct bfd_elf_section_data *elf_sec = elf_section_data (sec);
|
struct bfd_elf_section_data *elf_sec = elf_section_data (sec);
|
||||||
Elf_Internal_Shdr *hdr = &elf_sec->this_hdr;
|
Elf_Internal_Shdr *hdr = &elf_sec->this_hdr;
|
||||||
|
|
||||||
if (hdr->sh_type != SHT_ARM_EXIDX)
|
if (!hdr || hdr->sh_type != SHT_ARM_EXIDX)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (elf_sec->linked_to)
|
if (elf_sec->linked_to)
|
||||||
|
Reference in New Issue
Block a user