diff options
Diffstat (limited to 'gas/write.c')
-rw-r--r-- | gas/write.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gas/write.c b/gas/write.c index 0e49df7..b8d5253 100644 --- a/gas/write.c +++ b/gas/write.c @@ -1481,7 +1481,9 @@ compress_debug (bfd *abfd, asection *sec, void *xxx ATTRIBUTE_UNUSED) return; section_name = bfd_section_name (sec); - if (!startswith (section_name, ".debug_")) + if (!startswith (section_name, ".debug_") + && (!startswith (section_name, ".gnu.debuglto_.debug_") + || flag_compress_debug == COMPRESS_DEBUG_GNU_ZLIB)) return; bool use_zstd = abfd->flags & BFD_COMPRESS_ZSTD; |