* 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.
This commit is contained in:
Ian Lance Taylor 1994-09-07 23:41:58 +00:00
parent bf111c9f7d
commit 1208625d33
1 changed files with 7 additions and 2 deletions

View File

@ -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. */