Move microblaze relax info to target specific data
authorAlan Modra <amodra@gmail.com>
Sun, 3 Apr 2022 12:04:53 +0000 (21:34 +0930)
committerAlan Modra <amodra@gmail.com>
Sun, 3 Apr 2022 12:04:53 +0000 (21:34 +0930)
commit9751574e09a4d66b569b019e8b1d87eba1ce3288
tree7dad7135f0cb1fa91507b1c34661c2c94ca83192
parent924cf858c94ebc3f54e1e2e0710099fb94e2c901
Move microblaze relax info to target specific data

Target specific data shouldn't be put in struct bfd_section.

* section.c (struct bfd_section): Delete relax and relax_count.
(BFD_FAKE_SECTION): Adjust to suit.
(struct relax_table): Move to..
* elf32-microblaze.c (struct relax_table): ..here.
(struct _microblaze_elf_section_data): New.
(microblaze_elf_section_data): Define.
(microblaze_elf_new_section_hook): New function.
(bfd_elf32_new_section_hook): Define.
(calc_fixup): Return a size_t.  Adjust to suit new location of
relax and relax_count.
(microblaze_elf_relax_section): Adjust to suit new location of
relax and relax_count.  Make some variables size_t.
* bfd-in2.h: Regenerate.
bfd/bfd-in2.h
bfd/elf32-microblaze.c
bfd/section.c