This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Tweak region overflow check
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: "Nathan Sidwell" <nathan at codesourcery dot com>
- Cc: binutils <binutils at sources dot redhat dot com>
- Date: Fri, 2 May 2008 08:10:47 -0700
- Subject: Re: Tweak region overflow check
- References: <4810589B.3000803@codesourcery.com> <6dc9ffc80805020801u58487507j707284c5711504a6@mail.gmail.com>
Hi,
I am checking in this patch as an obvious fix.
H.J.
----2008-05-02 H.J. Lu <hongjiu.lu@intel.com>
PR ld/6475
* ld-scripts/rgn-over8-ok.d: Accept any alignment.
On Fri, May 2, 2008 at 8:01 AM, H.J. Lu <hjl.tools@gmail.com> wrote:
> Hi Nathan,
>
> This doesn't work on Linux/Intel64:
>
> http://sourceware.org/bugzilla/show_bug.cgi?id=6475
>
>
> H.J.
>
>
2008-05-02 H.J. Lu <hongjiu.lu@intel.com>
PR ld/6475
* ld-scripts/rgn-over8-ok.d: Accept any alignment.
--- ld-scripts/rgn-over8-ok.d.foo 2008-05-02 07:11:23.000000000 -0700
+++ ld-scripts/rgn-over8-ok.d 2008-05-02 08:06:22.000000000 -0700
@@ -7,6 +7,6 @@
Sections:
Idx +Name +Size +VMA +LMA +File off +Algn +Flags
- 0 .text 0+0000400 0+0000000 0+0000000 [0-9a-f]+ 2\*\*0 CONTENTS, ALLOC, LOAD, READONLY, CODE
- 1 .data 0+0000400 0+0001000 0+0000400 [0-9a-f]+ 2\*\*0 CONTENTS, ALLOC, LOAD, DATA
- 2 .bss 0+0000400 0+0001400 0+0000800 [0-9a-f]+ 2\*\*0 ALLOC
+ 0 .text 0+0000400 0+0000000 0+0000000 [0-9a-f]+ 2\*\*[0-9]+ CONTENTS, ALLOC, LOAD, READONLY, CODE
+ 1 .data 0+0000400 0+0001000 0+0000400 [0-9a-f]+ 2\*\*[0-9]+ CONTENTS, ALLOC, LOAD, DATA
+ 2 .bss 0+0000400 0+0001400 0+0000800 [0-9a-f]+ 2\*\*[0-9]+ ALLOC