Re: compress .gnu.debuglto_.debug_* sections if requested
authorAlan Modra <amodra@gmail.com>
Tue, 4 Oct 2022 02:39:36 +0000 (13:09 +1030)
committerAlan Modra <amodra@gmail.com>
Tue, 4 Oct 2022 08:06:45 +0000 (18:36 +1030)
commit034235cebd790d4f9a1728043a175d7d7d9338b1
tree1899d8ea958ae0a684f09f48e4255dee6cfd3f59
parent7afbac7ddd7299491a88341149bc72b38173447a
Re: compress .gnu.debuglto_.debug_* sections if requested

Enable zlib-gnu compression for .gnu.debuglto_.debug_*.  This differs
from zlib-gnu for .debug_* where the name is changed to .zdebug_*.
The name change isn't really needed.

bfd/
* elf.c (elf_fake_sections): Replace "." with ".z" in debug
section names only when name was ".d*", ie. ".debug_*".
(_bfd_elf_assign_file_positions_for_non_load): Likewise.
gas/
* write.c (compress_debug): Compress .gnu.debuglto_.debug_*
for zlib-gnu too.  Compress .gnu.linkonce.wi.*.
bfd/elf.c
gas/write.c