]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
bfd: rename parsing methods of object attribute v1 API
authorMatthieu Longo <matthieu.longo@arm.com>
Thu, 17 Apr 2025 10:05:16 +0000 (11:05 +0100)
committerMatthieu Longo <matthieu.longo@arm.com>
Mon, 24 Nov 2025 10:15:33 +0000 (10:15 +0000)
commitebe829eb9f026a27c06918e33eeaadf230f2dfa2
treeb8cece747371ad626dcf4503f93c001a4df6fb5c
parentd15d8e417dd4322d432bf864275c87b2633a31b3
bfd: rename parsing methods of object attribute v1 API

This patch is a preparation for the introduction of object attributes
v2. It aims at:
- making clear what methods are used to parse OAv1
- adding more constaints on parameters type by using enums instead of
defines.
- hiding the attribute tag type behind a typedef.
- preparing the move of object attributes's parsing code to another
  file.

Note: the name obj_attr_v1_process_attribute is exposed in the API.
Ideally, the version should not be part of the name, and be hidden
behind a macro. However, a later patch will unify the parsing of
OAv1 and OAv2, and will make the use of such a macro obsolete.
17 files changed:
bfd/elf-attrs.c
bfd/elf-bfd.h
bfd/elf32-arc.c
bfd/elf32-arm.c
bfd/elf32-csky.c
bfd/elf32-msp430.c
bfd/elf32-tic6x.c
bfd/elfnn-riscv.c
gas/config/obj-elf.c
gas/config/obj-elf.h
gas/config/tc-arc.c
gas/config/tc-arm.c
gas/config/tc-m68k.c
gas/config/tc-mips.c
gas/config/tc-ppc.c
gas/config/tc-riscv.c
gas/config/tc-tic6x.c