]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
aarch64: bugfix when finding 1st bfd input with GNU property
authorMatthieu Longo <matthieu.longo@arm.com>
Wed, 6 Nov 2024 17:59:46 +0000 (17:59 +0000)
committerMatthieu Longo <matthieu.longo@arm.com>
Mon, 2 Dec 2024 15:18:40 +0000 (15:18 +0000)
commitddbd1a4c98794de8a66d86dcfd8139e7a25088d2
treeb1f0d007d641b9f7dcee37ad91e2e97f9df5429f
parent2ad1fffee5f0eb055d7919dd1098107fa131501d
aarch64: bugfix when finding 1st bfd input with GNU property

The current implementation of searching the first input BFD with GNU
properties has a bug. The search was not filtering on object inputs
belonging to the output link unit only, but was also including dynamic
objects, BFD plugins, and linker-created files.
This means that the initial initialization of the output properties
were skewed, and warnings on input files that should have been emitted
were not.

This patch fixes the filtering to exclude the object input files not
belonging to the output link unit, not having the same ELF class, and
not the same target architecture.
bfd/elfxx-aarch64.c