diff options
author | Alan Modra <amodra@gmail.com> | 2022-04-03 21:34:53 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2022-04-03 21:34:53 +0930 |
commit | 9751574e09a4d66b569b019e8b1d87eba1ce3288 (patch) | |
tree | 7dad7135f0cb1fa91507b1c34661c2c94ca83192 /bfd/bfd-in2.h | |
parent | 924cf858c94ebc3f54e1e2e0710099fb94e2c901 (diff) |
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.
Diffstat (limited to 'bfd/bfd-in2.h')
-rw-r--r-- | bfd/bfd-in2.h | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h index bf3b6c66fd..404dae2eba 100644 --- a/bfd/bfd-in2.h +++ b/bfd/bfd-in2.h @@ -1070,13 +1070,6 @@ typedef struct bfd_section /* The compressed size of the section in octets. */ bfd_size_type compressed_size; - /* Relaxation table. */ - struct relax_table *relax; - - /* Count of used relaxation table entries. */ - int relax_count; - - /* If this section is going to be output, then this value is the offset in *bytes* into the output section of the first byte in the input section (byte ==> smallest addressable unit on the @@ -1177,17 +1170,6 @@ typedef struct bfd_section } asection; -/* Relax table contains information about instructions which can - be removed by relaxation -- replacing a long address with a - short address. */ -struct relax_table { - /* Address where bytes may be deleted. */ - bfd_vma addr; - - /* Number of bytes to be deleted. */ - int size; -}; - static inline const char * bfd_section_name (const asection *sec) { @@ -1336,8 +1318,8 @@ discarded_section (const asection *sec) /* sec_flg0, sec_flg1, sec_flg2, sec_flg3, sec_flg4, sec_flg5, */ \ 0, 0, 0, 0, 0, 0, \ \ - /* vma, lma, size, rawsize, compressed_size, relax, relax_count, */ \ - 0, 0, 0, 0, 0, 0, 0, \ + /* vma, lma, size, rawsize, compressed_size, */ \ + 0, 0, 0, 0, 0, \ \ /* output_offset, output_section, alignment_power, */ \ 0, &SEC, 0, \ |