From 91eec3a66df9aa115c7c24bc3bfa302140643a5e Mon Sep 17 00:00:00 2001 From: Peter Smith Date: Thu, 5 Dec 2024 16:29:02 +0000 Subject: [PATCH] [buildattr64] Clarify behaviour for duplicate attributes We follow the 32-bit ABI which permits an attribute to occur more than once, but if it does it has to have the same value. --- buildattr64/buildattr64.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/buildattr64/buildattr64.rst b/buildattr64/buildattr64.rst index 8a0c664..4bf49d6 100644 --- a/buildattr64/buildattr64.rst +++ b/buildattr64/buildattr64.rst @@ -219,6 +219,7 @@ changes to the content of the document for that release. | | | human readable names. | | | | Generalise mapping of aeabi-feature-and-bits to .note.gnu.property | | | | Renumber aeabi-feature-and-bits tags to start from 0. | + | | | Clarify that the same attribute with different values is an error. | +------------+---------------------+---------------------------------------------------------------------+ References @@ -633,6 +634,9 @@ encoding (ULEB128), DWARF style (for details see [GDWARF_]). String values are encoded using NUL-terminated byte strings (NTBS). +In a subsection it is erroneus to give two different values to the +same attribute, though the same value may be given more than once. + Encoding of meta data in a loadable-unit ----------------------------------------