[PATCH v11 24/25] gnu directives: bfd: generic tests for objcopy of gnu attributes v2
Matthieu Longo
matthieu.longo@arm.com
Thu Jan 15 17:12:13 GMT 2026
On 09/01/2026 09:23, Jan Beulich wrote:
> On 31.12.2025 00:05, Matthieu Longo wrote:
>> --- /dev/null
>> +++ b/binutils/testsuite/binutils-all/object-attr-v2.d
>> @@ -0,0 +1,52 @@
>> +#name: Copy object attributes v2 data from an object to another.
>> +#PROG: objcopy
>> +#target: [supports_oa_v2]
>> +#readelf: -A
>> +
>> +Subsections:
>> + - Name: foo_1
>> + Scope: private
>> + Length: 20
>> + Comprehension: optional
>> + Encoding: ULEB128
>> + Values:
>> + Tag_unknown_1: 1 \(0x1\)
>> + Tag_unknown_2: 0 \(0x0\)
>> + Tag_unknown_3: 0 \(0x0\)
>> + Tag_unknown_4: 0 \(0x0\)
>> +
>> + - Name: foo_2
>> + Scope: private
>> + Length: 16
>> + Comprehension: optional
>> + Encoding: ULEB128
>> + Values:
>> + Tag_unknown_0: 1 \(0x1\)
>> + Tag_unknown_1: 1 \(0x1\)
>> +
>> + - Name: foo_3
>> + Scope: private
>> + Length: 26
>> + Comprehension: optional
>> + Encoding: NTBS
>> + Values:
>> + Tag_unknown_0: "hello"
>> + Tag_unknown_1: "world"
>> +
>> + - Name: gnu_bar
>> + Scope: public
>> + Length: 20
>> + Comprehension: optional
>> + Encoding: ULEB128
>> + Values:
>> + Tag_unknown_0: 1 \(0x1\)
>> + Tag_unknown_1: 0 \(0x0\)
>> + Tag_unknown_2: 1 \(0x1\)
>> +
>> + - Name: gnu_foo
>> + Scope: public
>> + Length: 16
>> + Comprehension: required
>> + Encoding: ULEB128
>> + Values:
>> + Tag_unknown_1: 1 \(0x1\)
>
> See my remarks on the previous patch.
>
> Jan
Fixed.
Matthieu
More information about the Binutils
mailing list