refactor usage of compressed_debug_section_type
authorMartin Liska <mliska@suse.cz>
Mon, 3 Oct 2022 07:11:00 +0000 (09:11 +0200)
committerMartin Liska <mliska@suse.cz>
Tue, 11 Oct 2022 12:13:26 +0000 (14:13 +0200)
commit857bddbe737bc963bd9e5a3b24743a9bba5d2d7b
tree487913f1480b0ace5fa040e07f2b839c9eb00175
parentc6422d7be70f14bf7140085f2fc7a592737f5df5
refactor usage of compressed_debug_section_type

bfd/ChangeLog:

* bfd-in.h (bfd_hash_set_default_size): Add COMPRESS_UNKNOWN
  enum value.
(struct compressed_type_tuple): New.
* bfd-in2.h (bfd_hash_set_default_size): Regenerate.
(struct compressed_type_tuple): Likewise.
* libbfd.c (ARRAY_SIZE): New macro.
(bfd_get_compression_algorithm): New function.
(bfd_get_compression_algorithm_name): Likewise.

gas/ChangeLog:

* as.c: Do not special-case, use the new functions.

ld/ChangeLog:

* emultempl/elf.em: Do not special-case, use the new functions.
* lexsup.c (elf_static_list_options): Likewise.
bfd/bfd-in.h
bfd/bfd-in2.h
bfd/libbfd.c
gas/as.c
ld/emultempl/elf.em
ld/lexsup.c