This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Re: PATCH for using both RELA and REL relocations in the samebackend
- To: mark@codesourcery.com
- Subject: Re: PATCH for using both RELA and REL relocations in the samebackend
- From: Ian Lance Taylor <ian@zembu.com>
- Date: 2 Jun 1999 00:20:17 -0400
- CC: binutils@sourceware.cygnus.com
- References: <19990601202858Z.mitchell@codesourcery.com>
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