diff options
author | Alan Modra <amodra@gmail.com> | 2019-07-26 10:02:12 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2019-07-26 10:12:56 +0930 |
commit | 6dd17ae0f9b0d9fc230e75ce345da9793498554d (patch) | |
tree | 188ee43dd28c55890811f6ef5995b5d7b8c5b159 | |
parent | 6e99a238f01fcf6f77ae25e8ade57e509a724b1f (diff) | |
download | gdb-6dd17ae0f9b0d9fc230e75ce345da9793498554d.zip gdb-6dd17ae0f9b0d9fc230e75ce345da9793498554d.tar.gz gdb-6dd17ae0f9b0d9fc230e75ce345da9793498554d.tar.bz2 |
Begone elf_linker
This field effectively became usused a long time ago, perhaps as early
as 1994.
* elf-bfd.h (struct output_elf_obj_tdata): Delete "linker" field.
(elf_linker): Don't define.
* elflink.c (bfd_elf_final_link): Don't set elf_linker.
-rw-r--r-- | bfd/ChangeLog | 6 | ||||
-rw-r--r-- | bfd/elf-bfd.h | 5 | ||||
-rw-r--r-- | bfd/elflink.c | 2 |
3 files changed, 6 insertions, 7 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 53b84b0..05ea634 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2019-07-26 Alan Modra <amodra@gmail.com> + + * elf-bfd.h (struct output_elf_obj_tdata): Delete "linker" field. + (elf_linker): Don't define. + * elflink.c (bfd_elf_final_link): Don't set elf_linker. + 2019-07-25 YunQiang Su <syq@debian.org> PR 24832 diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h index 8b87c66..225a8e5 100644 --- a/bfd/elf-bfd.h +++ b/bfd/elf-bfd.h @@ -1800,10 +1800,6 @@ struct output_elf_obj_tdata /* Segment flags for the PT_GNU_STACK segment. */ unsigned int stack_flags; - /* This is set to TRUE if the object was created by the backend - linker. */ - bfd_boolean linker; - /* Used to determine if the e_flags field has been initialized */ bfd_boolean flags_init; }; @@ -1967,7 +1963,6 @@ struct elf_obj_tdata #define elf_seg_map(bfd) (elf_tdata(bfd) -> o->seg_map) #define elf_next_file_pos(bfd) (elf_tdata(bfd) -> o->next_file_pos) #define elf_eh_frame_hdr(bfd) (elf_tdata(bfd) -> o->eh_frame_hdr) -#define elf_linker(bfd) (elf_tdata(bfd) -> o->linker) #define elf_stack_flags(bfd) (elf_tdata(bfd) -> o->stack_flags) #define elf_shstrtab(bfd) (elf_tdata(bfd) -> o->strtab_ptr) #define elf_onesymtab(bfd) (elf_tdata(bfd) -> symtab_section) diff --git a/bfd/elflink.c b/bfd/elflink.c index 2830ee3..98941cc 100644 --- a/bfd/elflink.c +++ b/bfd/elflink.c @@ -12801,8 +12801,6 @@ bfd_elf_final_link (bfd *abfd, struct bfd_link_info *info) elf_final_link_free (abfd, &flinfo); - elf_linker (abfd) = TRUE; - if (attr_section) { bfd_byte *contents = (bfd_byte *) bfd_malloc (attr_size); |