mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2025-02-23 11:04:32 +00:00
Don't check relocations in excluded sections
When checking relocations after gc-sections has run, the unused sections have been removed. Don't check relocations in excluded sections. * elflink.c (_bfd_elf_link_check_relocs): Don't check relocations in excluded sections
This commit is contained in:
parent
fbf05aa70d
commit
5ce03cea78
@ -1,3 +1,8 @@
|
||||
2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
* elflink.c (_bfd_elf_link_check_relocs): Don't check relocations
|
||||
in excluded sections
|
||||
|
||||
2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
PR ld/19969
|
||||
|
@ -3518,7 +3518,9 @@ _bfd_elf_link_check_relocs (bfd *abfd, struct bfd_link_info *info)
|
||||
Elf_Internal_Rela *internal_relocs;
|
||||
bfd_boolean ok;
|
||||
|
||||
/* Don't check relocations in excluded sections. */
|
||||
if ((o->flags & SEC_RELOC) == 0
|
||||
|| (o->flags & SEC_EXCLUDE) != 0
|
||||
|| o->reloc_count == 0
|
||||
|| ((info->strip == strip_all || info->strip == strip_debugger)
|
||||
&& (o->flags & SEC_DEBUGGING) != 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user