Renaming .debug to .zdebug and vice versa
authorAlan Modra <amodra@gmail.com>
Sun, 4 Dec 2022 01:59:19 +0000 (12:29 +1030)
committerAlan Modra <amodra@gmail.com>
Sun, 4 Dec 2022 02:21:46 +0000 (12:51 +1030)
commit13917d936e367b0c42d4c32566e1017ff8e15520
treea902a4c52dd5fe559f12013bf7538fbd00864f6f
parent13556f4057d37f510f77143a1632febcc5618d1f
Renaming .debug to .zdebug and vice versa

Move a couple of elf.c functions to compress.c.

* compress.c (bfd_debug_name_to_zdebug): New inline function.
(bfd_zdebug_name_to_debug): Likewise.
* elf.c (convert_debug_to_zdebug, convert_zdebug_to_debug): Delete.
(_bfd_elf_make_section_from_shdr, elf_fake_sections),
(_bfd_elf_assign_file_positions_for_non_load): Adjust to suit.
* coffgen.c (make_a_section_from_file): Use new inlines here.
bfd/bfd-in2.h
bfd/coffgen.c
bfd/compress.c
bfd/elf.c