Skip to content

Commit 226364b

Browse files
committed
[buildattr64] Clarify at most one .ARM.attributes section
BuildAttributes have file scope, therefore only a single ELF BuildAttributes section is needed. While the 32-bit ABI had no restriction on the number of ELF sections, in practice there was always one, and creating more than one was difficult. By restricting the number of sections to at most one consumers don't need to account for multiple build attributes sections in the same file that contradict each other.
1 parent bc1d419 commit 226364b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

buildattr64/buildattr64.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -688,6 +688,9 @@ An ELF Attributes section uses a processor specific section with details
688688
| ``.ARM.attributes`` | ``SHT_AARCH64_ATTRIBUTES`` | 0x0 | 1 | 0 | 0 |
689689
+---------------------+----------------------------+-------+-----------+------+------------+
690690

691+
A relocatable object file can contain at most one ELF Attributes
692+
section.
693+
691694
In the contents of an ELF attributes section, a consumer may not assume
692695
the natural alignment of a data type such as ``uint32``.
693696

0 commit comments

Comments
 (0)