* libelf.h (struct elf_backend_data): Change second argument of
authorIan Lance Taylor <ian@airs.com>
Wed, 7 Sep 1994 23:41:58 +0000 (23:41 +0000)
committerIan Lance Taylor <ian@airs.com>
Wed, 7 Sep 1994 23:41:58 +0000 (23:41 +0000)
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.

bfd/libelf.h

index d43f135..eeac23b 100644 (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.  */