From: H.J. Lu Date: Fri, 5 Jun 2020 12:30:25 +0000 (-0700) Subject: bfin: Skip non SEC_ALLOC section X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=981f151804e47290f4dcff507aeb530b3334ac17;p=binutils-gdb.git bfin: Skip non SEC_ALLOC section * elf32-bfin.c (bfinfdpic_relocate_section): Skip non SEC_ALLOC section. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 011a49d5ecd..4971b878285 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2020-06-05 H.J. Lu + + * elf32-bfin.c (bfinfdpic_relocate_section): Skip non SEC_ALLOC + section. + 2020-06-05 Nick Clifton * pdp11.c (aout_link_add_symbols): Fix use before initialisation diff --git a/bfd/elf32-bfin.c b/bfd/elf32-bfin.c index b06daf507ed..e067cdeaad9 100644 --- a/bfd/elf32-bfin.c +++ b/bfd/elf32-bfin.c @@ -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,