From: Ian Lance Taylor Date: Wed, 7 Sep 1994 23:41:58 +0000 (+0000) Subject: * libelf.h (struct elf_backend_data): Change second argument of X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1208625d33b319c844bf10ec48f9a57cec76a5f1;p=binutils-gdb.git * libelf.h (struct elf_backend_data): Change second argument of elf_backend_final_write_processing hook to boolean. (struct elf_obj_tdata): Add linker field. * elfcode.h (NAME(bfd_elf,write_object_contents)): Pass value of tdata linker field to final_write_processing, rather than NULL. (elf_bfd_final_link): Don't call final_write_processing hook. Set tdata linker field to true. * elf32-mips.c (mips_elf_final_write_processing): Change type of second argument to boolean. * elf32-hppa.c (elf32_hppa_backend_final_write_processing): Likewise. --- diff --git a/bfd/libelf.h b/bfd/libelf.h index d43f135a570..eeac23b9ee7 100644 --- a/bfd/libelf.h +++ b/bfd/libelf.h @@ -383,9 +383,10 @@ struct elf_backend_data PARAMS ((bfd *, struct bfd_link_info *)); /* A function to do any final processing needed for the ELF file - before writing it out. */ + before writing it out. The LINKER argument is true if this BFD + was created by the ELF backend linker. */ void (*elf_backend_final_write_processing) - PARAMS ((bfd *, struct bfd_link_info *)); + PARAMS ((bfd *, boolean linker)); /* The swapping table to use when dealing with ECOFF information. Used for the MIPS ELF .mdebug section. */ @@ -461,6 +462,10 @@ struct elf_obj_tdata bfd_vma gp; /* The gp value (MIPS only, for now) */ int gp_size; /* The gp size (MIPS only, for now) */ + /* This is set to true if the object was created by the backend + linker. */ + boolean linker; + /* A mapping from external symbols to entries in the linker hash table, used when linking. This is indexed by the symbol index minus the sh_info field of the symbol table header. */