This is the mail archive of the binutils@sourceware.cygnus.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: PATCH for using both RELA and REL relocations in the samebackend


   From: Mark Mitchell <mark@codesourcery.com>
   Date: Tue, 01 Jun 1999 20:28:58 -0700

   +.#define SEC_ELF_USE_RELA 0x2000000
   +.       {* The relocations for this section are of the RELA, rather
   +.	   than the REL, variety.  As indicated by the name, this 
   +.	   flag is Elf-specific.  It is store in FLAGS, rather than in
   +.	   the Elf-specific data, because some programs (like objcopy)
   +.	   copy all the attributes of a section by copying its 
   +.	   flags.  *}
   +.


My feeling is that it would be cleaner to store the information in the
ELF data and to copy it in the copy_private_section_data entry point.
See _bfd_elf_copy_private_section_data in bfd/elf.c.

Ian

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]