PATCH for using both RELA and REL relocations in the samebackend
Ian Lance Taylor
ian@zembu.com
Thu Jul 1 00:00:00 GMT 1999
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
More information about the Binutils
mailing list