summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDanny Smith <dannysmith@users.sourceforge.net>2007-11-04 23:49:08 +0000
committerDanny Smith <dannysmith@users.sourceforge.net>2007-11-04 23:49:08 +0000
commit026d54aa230bfed6301995374fb163ef3b5b4c25 (patch)
treec38c2e89ad0917af2896d201163e07a1ca39113e /include
parent69bfb481a875c4c79497a2dc34725f4e4a5ff175 (diff)
downloadcygnal-026d54aa230bfed6301995374fb163ef3b5b4c25.tar.gz
cygnal-026d54aa230bfed6301995374fb163ef3b5b4c25.tar.bz2
cygnal-026d54aa230bfed6301995374fb163ef3b5b4c25.zip
include
* coff/pe.h (COFF_ENCODE_ALIGNMENT) Define. gas * read.c (ALIGN_LIMIT): Rename to ... (TC_ALIGN_LIMIT): Guard against prior definition. * config/tc-i386.h (TC_ALIGN_LIMIT)[TE_PE]: Define. bfd * pe-i386.c (COFF_SECTION_ALIGNMENT_ENTRIES): Let .data, .text and .bss section use the default. * pei-i386.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise. ld/testsuite * ld-scripts/align.exp: Enable for PECOFF. * ld-scripts/alignof.exp: Likewise.
Diffstat (limited to 'include')
-rw-r--r--include/ChangeLog4
-rw-r--r--include/coff/pe.h4
2 files changed, 8 insertions, 0 deletions
diff --git a/include/ChangeLog b/include/ChangeLog
index 9dfb1b08a..f3dc43334 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -1,3 +1,7 @@
+2007-11-05 Danny Smith <dannysmith@users.sourceforge.net>
+
+ * coff/pe.h (COFF_ENCODE_ALIGNMENT) Define.
+
2007-09-06 Tom Tromey <tromey@redhat.com>
* libiberty.h (pex_free): Document process killing.
diff --git a/include/coff/pe.h b/include/coff/pe.h
index 5a4d96027..734b11ab9 100644
--- a/include/coff/pe.h
+++ b/include/coff/pe.h
@@ -90,6 +90,10 @@
#define IMAGE_SCN_ALIGN_4096BYTES IMAGE_SCN_ALIGN_POWER_CONST (12)
#define IMAGE_SCN_ALIGN_8192BYTES IMAGE_SCN_ALIGN_POWER_CONST (13)
+/* Encode alignment power into IMAGE_SCN_ALIGN bits of s_flags */
+#define COFF_ENCODE_ALIGNMENT(SECTION, ALIGNMENT_POWER) \
+ ((SECTION).s_flags |= IMAGE_SCN_ALIGN_POWER_CONST ((ALIGNMENT_POWER)))
+
#define IMAGE_SCN_LNK_NRELOC_OVFL 0x01000000 /* Section contains extended relocations. */
#define IMAGE_SCN_MEM_NOT_CACHED 0x04000000 /* Section is not cachable. */
#define IMAGE_SCN_MEM_NOT_PAGED 0x08000000 /* Section is not pageable. */