]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - bfd/elf.c
Set sh_link for reloc sections created as normal sections
authorAlan Modra <amodra@gmail.com>
Wed, 8 Dec 2021 09:34:25 +0000 (20:04 +1030)
committerAlan Modra <amodra@gmail.com>
Thu, 9 Dec 2021 22:03:12 +0000 (08:33 +1030)
commitb6d1f70cc7e948de99f91fc44d07c44686275fc4
tree18a575389f6374734af296155a876c832d38efce
parentfe72c32765e1190c8a17d309fc3a7e1882d6a430
Set sh_link for reloc sections created as normal sections

binutils-all/strip-13 and binutils-all/strip-14 tests create
SHT_REL/SHT_RELA sections by hand.  These don't have sh_link set to
the .symtab section as they should, leading to readelf warnings if you
happen to be looking at the object files.

* elf.c (assign_section_numbers): Formatting.  Set sh_link for
reloc sections created as normal sections in relocatable
objects.
bfd/elf.c