]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
OAv2 merge: merge subsections and tags at file scope
authorMatthieu Longo <matthieu.longo@arm.com>
Fri, 14 Nov 2025 18:41:32 +0000 (18:41 +0000)
committerMatthieu Longo <matthieu.longo@arm.com>
Thu, 22 Jan 2026 10:11:16 +0000 (10:11 +0000)
commitb4e1d3d37f7cec785b39e5f13b7acfc0b4e0f693
tree59d48fea843811e3a5431b00e7ec904b159338b7
parent0ea2dc5006a8d57065f04fe63350cb0db8aa769e
OAv2 merge: merge subsections and tags at file scope

Before merging input object files together, each input's object
attributes must be sanitized to ensure that duplicate subsections and
attributes are merged and properly sorted.  Indeed, uniqueness and
ordering of subsections and attributes are required prerequisites for
the merge process.
This operation also handles, on a best-effort basis, exotic objects
produced by non-GNU assemblers, where duplicate subsections may appear
across different sections, and similarly, duplicate attributes across
subsections.
It is importand to note that such cases are not covered by the Object
Attributes specification, and the resulting behavior is implementation
-defined.  Other linkers may handle these inputs differently.
bfd/elf-attrs.c