]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
binutils: factorize handling of arch-specific DWARF augmentations
authorJose E. Marchesi <jose.marchesi@oracle.com>
Sat, 12 Jul 2025 08:56:45 +0000 (10:56 +0200)
committerJose E. Marchesi <jose.marchesi@oracle.com>
Sat, 12 Jul 2025 09:33:25 +0000 (11:33 +0200)
commit11d33617e04dc6c54274ce69640218efd26519f5
treea5f32333a18f7fb381aaee6e0b3ecacf42aa55fd
parent3e97860c29ae2aee5644fd10cf868d2f1f5c9703
binutils: factorize handling of arch-specific DWARF augmentations

This patch factorizes the handling of architecture/machine specific
augmentation characters in CIEs.

Based on an idea proposed by Richard Earnshaw.

binutils/ChangeLog:

* dwarf.c (is_mach_augmentation_ftype): New type.
(is_mach_augmentation): New variable.
(is_nomach_augmentation): New function.
(is_aarch64_augmentation): Likewise.
(init_dwarf_by_elf_machine_code): Set is_mach_augmentation as
appropriate.
(init_dwarf_by_bfd_arch_and_mach): Likewise.
(read_cie): Handle architecture-specific augmentation characters
in a generic way.
binutils/dwarf.c