From: H.J. Lu Date: Wed, 12 Aug 2015 02:04:38 +0000 (-0700) Subject: Properly skip IFUNC relocations in debug sections X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0eace2105dc6c005fdc908414ad564d318b71540;p=binutils-gdb.git Properly skip IFUNC relocations in debug sections Use "continue" instead of "break" to skip IFUNC relocations in debug sections. * elf32-i386.c (elf_i386_relocate_section): Properly skip IFUNC relocations in debug sections. * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 1e02625a0f3..2f850e7d0d5 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2015-08-11 H.J. Lu + + * elf32-i386.c (elf_i386_relocate_section): Properly skip IFUNC + relocations in debug sections. + * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise. + 2015-08-11 Jiong Wang * elfnn-aarch64.c (elfNN_aarch64_relocate_section): Improve warning diff --git a/bfd/elf32-i386.c b/bfd/elf32-i386.c index fb874215aec..98902ac6186 100644 --- a/bfd/elf32-i386.c +++ b/bfd/elf32-i386.c @@ -3509,7 +3509,7 @@ elf_i386_relocate_section (bfd *output_bfd, sections because such sections are not SEC_ALLOC and thus ld.so will not process them. */ if ((input_section->flags & SEC_DEBUGGING) != 0) - break; + continue; abort (); } else if (h->plt.offset == (bfd_vma) -1) diff --git a/bfd/elf64-x86-64.c b/bfd/elf64-x86-64.c index 4b8303292ab..b3c85221afc 100644 --- a/bfd/elf64-x86-64.c +++ b/bfd/elf64-x86-64.c @@ -3792,7 +3792,7 @@ elf_x86_64_relocate_section (bfd *output_bfd, sections because such sections are not SEC_ALLOC and thus ld.so will not process them. */ if ((input_section->flags & SEC_DEBUGGING) != 0) - break; + continue; abort (); } else if (h->plt.offset == (bfd_vma) -1)