diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2010-03-18 12:27:14 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2010-03-18 12:27:14 +0000 |
commit | d511bbb0f06d3f7f32433d81e3249d66329f3b94 (patch) | |
tree | 2f625c28dcec4be03f12798b77ca0a489143daee /bfd/libcoff-in.h | |
parent | 746a85793340219c460f7ac05dc5dd001d774894 (diff) | |
download | binutils-redhat-d511bbb0f06d3f7f32433d81e3249d66329f3b94.tar.gz |
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-in.h')
-rw-r--r-- | bfd/libcoff-in.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bfd/libcoff-in.h b/bfd/libcoff-in.h index cf0a31907b..e2b60c5326 100644 --- a/bfd/libcoff-in.h +++ b/bfd/libcoff-in.h @@ -118,6 +118,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; |