public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [patch]: Minor fix about section alignments for x64
@ 2010-09-14 20:31 Kai Tietz
  2010-09-14 20:38 ` Richard Henderson
  0 siblings, 1 reply; 3+ messages in thread
From: Kai Tietz @ 2010-09-14 20:31 UTC (permalink / raw)
  To: Binutils; +Cc: Dave Korn, Richard Henderson

[-- Attachment #1: Type: text/plain, Size: 411 bytes --]

Hello,

ChangeLog bfd

2010-09-14  Kai Tietz

         * pe-x86_64.c (COFF_SECTION_ALIGNMENT_ENTRIES): Make
         .rdata, .data, and .text partial matched section names.
         * pei-x86_64.c: Likewise.

Tested for x86_64-w64-mingw32. Ok for apply?

Regards,
Kai

-- 
|  (\_/) This is Bunny. Copy and paste
| (='.'=) Bunny into your signature to help
| (")_(") him gain world domination

[-- Attachment #2: seg.diff --]
[-- Type: application/octet-stream, Size: 2087 bytes --]

Index: pe-x86_64.c
===================================================================
RCS file: /cvs/src/src/bfd/pe-x86_64.c,v
retrieving revision 1.4
diff -u -3 -r1.4 pe-x86_64.c
--- pe-x86_64.c	27 Apr 2010 17:26:09 -0000	1.4
+++ pe-x86_64.c	14 Sep 2010 20:27:01 -0000
@@ -40,11 +40,11 @@
 #define COFF_SECTION_ALIGNMENT_ENTRIES \
 { COFF_SECTION_NAME_EXACT_MATCH (".bss"), \
   COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 4 }, \
-{ COFF_SECTION_NAME_EXACT_MATCH (".data"), \
+{ COFF_SECTION_NAME_PARTIAL_MATCH (".data"), \
   COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 4 }, \
-{ COFF_SECTION_NAME_EXACT_MATCH (".rdata"), \
+{ COFF_SECTION_NAME_PARTIAL_MATCH (".rdata"), \
   COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 4 }, \
-{ COFF_SECTION_NAME_EXACT_MATCH (".text"), \
+{ COFF_SECTION_NAME_PARTIAL_MATCH (".text"), \
   COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 4 }, \
 { COFF_SECTION_NAME_PARTIAL_MATCH (".idata"), \
   COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 2 }, \
Index: pei-x86_64.c
===================================================================
RCS file: /cvs/src/src/bfd/pei-x86_64.c,v
retrieving revision 1.6
diff -u -3 -r1.6 pei-x86_64.c
--- pei-x86_64.c	27 Apr 2010 17:26:09 -0000	1.6
+++ pei-x86_64.c	14 Sep 2010 20:27:02 -0000
@@ -43,11 +43,11 @@
 #define COFF_SECTION_ALIGNMENT_ENTRIES \
 { COFF_SECTION_NAME_EXACT_MATCH (".bss"), \
   COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 4 }, \
-{ COFF_SECTION_NAME_EXACT_MATCH (".data"), \
+{ COFF_SECTION_NAME_PARTIAL_MATCH (".data"), \
   COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 4 }, \
-{ COFF_SECTION_NAME_EXACT_MATCH (".rdata"), \
+{ COFF_SECTION_NAME_PARTIAL_MATCH (".rdata"), \
   COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 4 }, \
-{ COFF_SECTION_NAME_EXACT_MATCH (".text"), \
+{ COFF_SECTION_NAME_PARTIAL_MATCH (".text"), \
   COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 4 }, \
 { COFF_SECTION_NAME_PARTIAL_MATCH (".idata"), \
   COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 2 }, \

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [patch]: Minor fix about section alignments for x64
  2010-09-14 20:31 [patch]: Minor fix about section alignments for x64 Kai Tietz
@ 2010-09-14 20:38 ` Richard Henderson
  2010-09-14 20:41   ` Kai Tietz
  0 siblings, 1 reply; 3+ messages in thread
From: Richard Henderson @ 2010-09-14 20:38 UTC (permalink / raw)
  To: Kai Tietz; +Cc: Binutils, Dave Korn

On 09/14/2010 01:31 PM, Kai Tietz wrote:
>          * pe-x86_64.c (COFF_SECTION_ALIGNMENT_ENTRIES): Make
>          .rdata, .data, and .text partial matched section names.
>          * pei-x86_64.c: Likewise.
> 
> Tested for x86_64-w64-mingw32. Ok for apply?


Ok.


r~

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [patch]: Minor fix about section alignments for x64
  2010-09-14 20:38 ` Richard Henderson
@ 2010-09-14 20:41   ` Kai Tietz
  0 siblings, 0 replies; 3+ messages in thread
From: Kai Tietz @ 2010-09-14 20:41 UTC (permalink / raw)
  To: Richard Henderson; +Cc: Binutils, Dave Korn

2010/9/14 Richard Henderson <rth@redhat.com>:
> On 09/14/2010 01:31 PM, Kai Tietz wrote:
>>          * pe-x86_64.c (COFF_SECTION_ALIGNMENT_ENTRIES): Make
>>          .rdata, .data, and .text partial matched section names.
>>          * pei-x86_64.c: Likewise.
>>
>> Tested for x86_64-w64-mingw32. Ok for apply?
>
>
> Ok.
>
>
> r~
>

Applied.

Thanks,
Kai

-- 
|  (\_/) This is Bunny. Copy and paste
| (='.'=) Bunny into your signature to help
| (")_(") him gain world domination

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-09-14 20:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-14 20:31 [patch]: Minor fix about section alignments for x64 Kai Tietz
2010-09-14 20:38 ` Richard Henderson
2010-09-14 20:41   ` Kai Tietz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).