bfin: Skip non SEC_ALLOC section
* elf32-bfin.c (bfinfdpic_relocate_section): Skip non SEC_ALLOC section.
This commit is contained in:
parent
82f06518c4
commit
981f151804
@ -1,3 +1,8 @@
|
||||
2020-06-05 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
* elf32-bfin.c (bfinfdpic_relocate_section): Skip non SEC_ALLOC
|
||||
section.
|
||||
|
||||
2020-06-05 Nick Clifton <nickc@redhat.com>
|
||||
|
||||
* pdp11.c (aout_link_add_symbols): Fix use before initialisation
|
||||
|
@ -2614,6 +2614,9 @@ bfinfdpic_relocate_section (bfd * output_bfd,
|
||||
case R_BFIN_FUNCDESC_GOTOFFLO:
|
||||
case R_BFIN_FUNCDESC:
|
||||
case R_BFIN_FUNCDESC_VALUE:
|
||||
if ((input_section->flags & SEC_ALLOC) == 0)
|
||||
break;
|
||||
|
||||
if (h != NULL)
|
||||
picrel = bfinfdpic_relocs_info_for_global (bfinfdpic_relocs_info
|
||||
(info), input_bfd, h,
|
||||
|
Loading…
x
Reference in New Issue
Block a user