aboutsummaryrefslogtreecommitdiff
path: root/bfd/section.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2022-04-03 21:34:53 +0930
committerAlan Modra <amodra@gmail.com>2022-04-03 21:34:53 +0930
commit9751574e09a4d66b569b019e8b1d87eba1ce3288 (patch)
tree7dad7135f0cb1fa91507b1c34661c2c94ca83192 /bfd/section.c
parent924cf858c94ebc3f54e1e2e0710099fb94e2c901 (diff)
downloadgdb-9751574e09a4d66b569b019e8b1d87eba1ce3288.zip
gdb-9751574e09a4d66b569b019e8b1d87eba1ce3288.tar.gz
gdb-9751574e09a4d66b569b019e8b1d87eba1ce3288.tar.bz2
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/section.c')
-rw-r--r--bfd/section.c22
1 files changed, 2 insertions, 20 deletions
diff --git a/bfd/section.c b/bfd/section.c
index 9a10714..d7922e0 100644
--- a/bfd/section.c
+++ b/bfd/section.c
@@ -455,13 +455,6 @@ CODE_FRAGMENT
. {* 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
@@ -562,17 +555,6 @@ CODE_FRAGMENT
.
.} 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)
.{
@@ -721,8 +703,8 @@ CODE_FRAGMENT
. {* 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, \