diff options
author | Martin Liska <mliska@suse.cz> | 2022-10-03 09:11:00 +0200 |
---|---|---|
committer | Martin Liska <mliska@suse.cz> | 2022-10-11 14:13:26 +0200 |
commit | 857bddbe737bc963bd9e5a3b24743a9bba5d2d7b (patch) | |
tree | 487913f1480b0ace5fa040e07f2b839c9eb00175 /ld/lexsup.c | |
parent | c6422d7be70f14bf7140085f2fc7a592737f5df5 (diff) | |
download | binutils-857bddbe737bc963bd9e5a3b24743a9bba5d2d7b.zip binutils-857bddbe737bc963bd9e5a3b24743a9bba5d2d7b.tar.gz binutils-857bddbe737bc963bd9e5a3b24743a9bba5d2d7b.tar.bz2 |
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.
Diffstat (limited to 'ld/lexsup.c')
-rw-r--r-- | ld/lexsup.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/ld/lexsup.c b/ld/lexsup.c index 299371f..0c01c99 100644 --- a/ld/lexsup.c +++ b/ld/lexsup.c @@ -2148,13 +2148,9 @@ elf_static_list_options (FILE *file) fprintf (file, _("\ --compress-debug-sections=[none|zlib|zlib-gnu|zlib-gabi|zstd]\n\ Compress DWARF debug sections\n")); -#ifdef DEFAULT_FLAG_COMPRESS_DEBUG fprintf (file, _("\ - Default: zlib-gabi\n")); -#else - fprintf (file, _("\ - Default: none\n")); -#endif + Default: %s\n"), + bfd_get_compression_algorithm_name (link_info.compress_debug)); fprintf (file, _("\ -z common-page-size=SIZE Set common page size to SIZE\n")); fprintf (file, _("\ |