From 11ec4ba97796b1bdfc68b034ce3f719af81c3e48 Mon Sep 17 00:00:00 2001 From: Danny Smith Date: Sun, 4 Nov 2007 23:49:09 +0000 Subject: 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. --- ld/testsuite/ChangeLog | 5 +++++ ld/testsuite/ld-scripts/align.exp | 6 ------ ld/testsuite/ld-scripts/alignof.exp | 4 ++-- 3 files changed, 7 insertions(+), 8 deletions(-) (limited to 'ld') diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index b8b5b2b..0ebc47e 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2007-11-05 Danny Smith + + * ld-scripts/align.exp: Enable for PECOFF. + * ld-scripts/alignof.exp: Likewise. + 2007-11-01 Joseph Myers * ld-elf/merge3.d, ld-elf/merge3.s: New. diff --git a/ld/testsuite/ld-scripts/align.exp b/ld/testsuite/ld-scripts/align.exp index e666982..b0fb962 100644 --- a/ld/testsuite/ld-scripts/align.exp +++ b/ld/testsuite/ld-scripts/align.exp @@ -32,17 +32,11 @@ if ![ld_assemble $as $srcdir/$subdir/align.s tmpdir/align.o] { return } -# Doesn't work on PECOFF, appears to be a genuine bug. # mingw on x86_64 targets need to set the image base to 0 to avoid auto image-basing. global LDFLAGS set saved_LDFLAGS "$LDFLAGS" if [istarget "x86_64-*-mingw*"] then { set LDFLAGS "$LDFLAGS --image-base 0" -} else { - if [is_pecoff_format] { - global target_triplet - setup_xfail $target_triplet - } } if ![ld_simple_link $ld tmpdir/align "$LDFLAGS -T $srcdir/$subdir/align.t tmpdir/align.o"] { diff --git a/ld/testsuite/ld-scripts/alignof.exp b/ld/testsuite/ld-scripts/alignof.exp index 207d22c..0f05aeb 100644 --- a/ld/testsuite/ld-scripts/alignof.exp +++ b/ld/testsuite/ld-scripts/alignof.exp @@ -19,9 +19,9 @@ # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, # MA 02110-1301, USA. -# Only ELF targets record section alignment. +# Only ELF and PE-COFF targets record section alignment. -if ![is_elf_format] { +if {![is_elf_format] && ![is_pecoff_format]} { return } -- cgit v1.1