bfd/elf: Don't read non-existing secondary relocs
authorMichael Matz <matz@suse.de>
Tue, 8 Jun 2021 15:39:02 +0000 (17:39 +0200)
committerMichael Matz <matz@suse.de>
Tue, 8 Jun 2021 15:40:17 +0000 (17:40 +0200)
I forgot the ChangeLog commit :-/

bfd/ChangeLog

index 04e3679ab54f8fa50899ca61b3ba22847e6d7130..d1192e3acc82ab2cd645a73e8806af3e106a68d0 100644 (file)
@@ -1,3 +1,8 @@
+2021-06-08  Michael Matz  <matz@suse.de>
+
+       * elf.c (bfd_section_from_shdr): Set has_secondary_relocs flag.
+       (_bfd_elf_slurp_secondary_reloc_section): Use it for early-out.
+
 2021-06-07  Jan Beulich  <jbeulich@suse.com>
 
        * dwarf2.c (read_ranges, read_rnglists): Add u suffix to constant.