aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2010-03-18 12:27:15 +0000
committerH.J. Lu <hjl.tools@gmail.com>2010-03-18 12:27:15 +0000
commit441f34fa999247cf9948edbb92089804a4d176d5 (patch)
treef284a129ef00f07754f54fa3c628739fd2e66bb7 /bfd/libcoff.h
parentbfd/ (diff)
downloadbinutils-gdb-441f34fa999247cf9948edbb92089804a4d176d5.tar.gz
binutils-gdb-441f34fa999247cf9948edbb92089804a4d176d5.tar.bz2
binutils-gdb-441f34fa999247cf9948edbb92089804a4d176d5.zip
Don't add IMAGE_FILE_RELOCS_STRIPPED for PIE.
2010-03-18 H.J. Lu <hongjiu.lu@intel.com> PR binutils/11396 * libcoff-in.h (pe_tdata): Add dont_strip_reloc. * libcoff.h: Regenerated. * peXXigen.c (_bfd_XXi_only_swap_filehdr_out): Clear F_RELFLG if dont_strip_reloc is set. (_bfd_XX_bfd_copy_private_bfd_data_common): Set dont_strip_reloc on output if there is no .reloc and IMAGE_FILE_RELOCS_STRIPPED isn't set in input.
Diffstat (limited to 'bfd/libcoff.h')
-rw-r--r--bfd/libcoff.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/bfd/libcoff.h b/bfd/libcoff.h
index db5e2904f6b..966f71ee103 100644
--- a/bfd/libcoff.h
+++ b/bfd/libcoff.h
@@ -122,6 +122,7 @@ typedef struct pe_tdata
struct internal_extra_pe_aouthdr pe_opthdr;
int dll;
int has_reloc_section;
+ int dont_strip_reloc;
bfd_boolean (*in_reloc_p) (bfd *, reloc_howto_type *);
flagword real_flags;
} pe_data_type;