]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
section-select: Completely rebuild matches
authorMichael Matz <matz@suse.de>
Thu, 27 Oct 2022 12:50:40 +0000 (14:50 +0200)
committerMichael Matz <matz@suse.de>
Wed, 30 Nov 2022 16:15:08 +0000 (17:15 +0100)
commit50be5d11289c8ca8d5aa7ec621b7110b6572612a
tree8808ebe7201b3c7437b38af707d855484c4f199d
parent43ae96e94ab7e3d5dfdb0d7c1b6ba57814a43f1d
section-select: Completely rebuild matches

The check_relocs callback (and others) might have created new
section behind our back and some of them (e.g. on powerpc the
"linker stubs" .got) need to come in front of all others, despite
being created late (a symptom would be "TOC opt*" failing on powerpc).

This resets all section matches before updating for newly created
sections (i.e. completely rebuilds the matches).
ld/ldlang.c