summaryrefslogtreecommitdiff
path: root/bfd/coffcode.h
diff options
context:
space:
mode:
authorH.J. Lu <hjl@lucon.org>2009-04-21 17:08:20 +0000
committerH.J. Lu <hjl@lucon.org>2009-04-21 17:08:20 +0000
commit23e965ccf55167e0b134188e230f6f41c90bfd23 (patch)
treeaef2646d2e9a7d57c782aff80ffdaf471048dc09 /bfd/coffcode.h
parent03fd8fcf7660b448f6a12505cb9127eb76d86e29 (diff)
downloadbinutils-redhat-23e965ccf55167e0b134188e230f6f41c90bfd23.tar.gz
2009-04-21 H.J. Lu <hongjiu.lu@intel.com>
* coff-ia64.c (COFF_PAGE_SIZE): Changed to 8K. * coffcode.h (coff_compute_section_file_positions): Clear D_PAGED if PE section alignment is smaller than COFF_PAGE_SIZE. * libcoff-in.h (pe_tdata): Remove force_minimum_alignment and force_minimum_alignment. * libcoff.h: Regenerated. * pei-ia64.c (PEI_TARGET_SUBSYSTEM): Removed. (PEI_FORCE_MINIMUM_ALIGNMENT): Likewise. * peicode.h (pe_mkobject): Don't set force_minimum_alignment nor target_subsystem. * peXXigen.c (_bfd_XXi_swap_aouthdr_out): Don't check force_minimum_alignment nor target_subsystem.
Diffstat (limited to 'bfd/coffcode.h')
-rw-r--r--bfd/coffcode.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/bfd/coffcode.h b/bfd/coffcode.h
index 312aa7758c..6a8a8cbcbc 100644
--- a/bfd/coffcode.h
+++ b/bfd/coffcode.h
@@ -3186,6 +3186,13 @@ coff_compute_section_file_positions (bfd * abfd)
int target_index;
bfd_size_type amt;
+#ifdef COFF_PAGE_SIZE
+ /* Clear D_PAGED if section alignment is smaller than
+ COFF_PAGE_SIZE. */
+ if (pe_data (abfd)->pe_opthdr.SectionAlignment < COFF_PAGE_SIZE)
+ abfd->flags &= ~D_PAGED;
+#endif
+
count = 0;
for (current = abfd->sections; current != NULL; current = current->next)
++count;