From c86696a3b184ccaf005bc806257fb124be1e6faa Mon Sep 17 00:00:00 2001 From: Brian Ford Date: Wed, 22 Sep 2004 22:40:21 +0000 Subject: [PATCH] * pei-i386.c (COFF_SECTION_ALIGNMENT_ENTRIES): Enable 16 byte alignment for .rdata sections so sse[2] code works with gcc >= 3.3.3 constants. * pe-i386.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise. --- bfd/ChangeLog | 7 +++++++ bfd/pe-i386.c | 2 ++ bfd/pei-i386.c | 2 ++ 3 files changed, 11 insertions(+) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 5623154de74..a5983ea84af 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,10 @@ +2004-09-22 Brian Ford + + * pei-i386.c (COFF_SECTION_ALIGNMENT_ENTRIES): Enable 16 byte + alignment for .rdata sections so sse[2] code works with gcc >= 3.3.3 + constants. + * pe-i386.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise. + 2004-09-22 Alan Modra * elf32-ppc.c (ppc_elf_modify_segment_map): Delete. diff --git a/bfd/pe-i386.c b/bfd/pe-i386.c index be691fd7eeb..d78970ddc93 100644 --- a/bfd/pe-i386.c +++ b/bfd/pe-i386.c @@ -34,6 +34,8 @@ COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 4 }, \ { COFF_SECTION_NAME_EXACT_MATCH (".data"), \ COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 4 }, \ +{ COFF_SECTION_NAME_EXACT_MATCH (".rdata"), \ + COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 4 }, \ { COFF_SECTION_NAME_EXACT_MATCH (".text"), \ COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 4 }, \ { COFF_SECTION_NAME_PARTIAL_MATCH (".idata"), \ diff --git a/bfd/pei-i386.c b/bfd/pei-i386.c index 4a59f143ad0..4b36213309d 100644 --- a/bfd/pei-i386.c +++ b/bfd/pei-i386.c @@ -35,6 +35,8 @@ COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 4 }, \ { COFF_SECTION_NAME_EXACT_MATCH (".data"), \ COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 4 }, \ +{ COFF_SECTION_NAME_EXACT_MATCH (".rdata"), \ + COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 4 }, \ { COFF_SECTION_NAME_EXACT_MATCH (".text"), \ COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 4 }, \ { COFF_SECTION_NAME_PARTIAL_MATCH (".idata"), \ -- 2.30.2