forked from Imagelibrary/binutils-gdb
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.
This commit is contained in:
@@ -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, \
|
||||
|
||||
Reference in New Issue
Block a user