]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Serialization and dumping tests of Object Attributes v2
authorRichard Ball <richard.ball@arm.com>
Tue, 14 Jan 2025 16:44:40 +0000 (16:44 +0000)
committerMatthieu Longo <matthieu.longo@arm.com>
Thu, 22 Jan 2026 10:11:16 +0000 (10:11 +0000)
commit977832208cdada94d870209c43710eef584daef0
tree5482cdeefdc41787a11ad51f33f2e23ed0d25316
parent70fce2138cf7de1f3a3164ff5d816f6036510679
Serialization and dumping tests of Object Attributes v2

The added tests cover the parsing of the new assembly directives
(aeabi_subsection and aeabi_attribute), the serialization of the
Object Attributes v2 (OAv2) data into an object file, and the
dumping of those data via readelf.

The parsing tests focus on the following points:
- the syntax of the new directives.
- the recognition of generic tokens like: NTBS, ULEB128, required,
  optional.
- the recognition of backend-specific tokens like Tag_Feature_(BTI,
  PAC,GCS).

The dumping tests focus on:
- the OAv2 population into the correct section assigned by the backend
  (i.e. .ARM.attributes for AArch64).
- the merge of the subsections and attributes when they are declared
  several times inside respectively the same compilation unit, and
  subsection.
- the sorting of OAv2 before the serialization.

Co-Authored-By: Matthieu Longo <matthieu.longo@arm.com>
gas/testsuite/gas/aarch64/build-attributes/aarch64-build-attributes.exp [new file with mode: 0644]
gas/testsuite/gas/aarch64/build-attributes/ba-1.d [new file with mode: 0644]
gas/testsuite/gas/aarch64/build-attributes/ba-1.s [new file with mode: 0644]
gas/testsuite/gas/aarch64/build-attributes/ba-failures-1.d [new file with mode: 0644]
gas/testsuite/gas/aarch64/build-attributes/ba-failures-1.l [new file with mode: 0644]
gas/testsuite/gas/aarch64/build-attributes/ba-failures-1.s [new file with mode: 0644]
gas/testsuite/gas/aarch64/build-attributes/ba-interleaved-subsections.d [new file with mode: 0644]
gas/testsuite/gas/aarch64/build-attributes/ba-interleaved-subsections.s [new file with mode: 0644]
gas/testsuite/gas/aarch64/build-attributes/ba-subsection-parsing.d [new file with mode: 0644]
gas/testsuite/gas/aarch64/build-attributes/ba-subsection-parsing.s [new file with mode: 0644]