bfd_section_from_shdr: Support SHT_RELR sections
authorFangrui Song <maskray@google.com>
Wed, 8 Dec 2021 02:24:14 +0000 (18:24 -0800)
committerAlan Modra <amodra@gmail.com>
Wed, 8 Dec 2021 10:06:42 +0000 (20:36 +1030)
commita619b58721f0a03fd91c27670d3e4c2fb0d88f1e
treead4914da6187d301960aa2a98be7d2ee73151175
parentda1ecf8919e3fe07fbec53240015dc3cc55dbd7c
bfd_section_from_shdr: Support SHT_RELR sections

If a.so contains an SHT_RELR section, objcopy a.so will fail with:

    a.so: unknown type [0x13] section `.relr.dyn'

This change allows objcopy to work.

bfd/
    * elf.c (bfd_section_from_shdr): Support SHT_RELR.
bfd/elf.c