bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gold/18847] Gold: Address of section moves backward when aligned.


From: ccoutant at gmail dot com
Subject: [Bug gold/18847] Gold: Address of section moves backward when aligned.
Date: Wed, 26 Aug 2015 07:11:09 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=18847

Cary Coutant <ccoutant at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #4 from Cary Coutant <ccoutant at gmail dot com> ---
Fixed on master. The actual fix was a bit more complicated, as we had to
account for updating the location counter within the specified region and
checking that the specified address is actually contained within the region.

As an aside, the original script would have worked fine with one simple change.
As written,

.data ALIGN(0x10000) :

the ALIGN() expression specifies the section start address, which gold took to
override the region specification. By writing this instead:

.data : ALIGN(0x10000)

the ALIGN() expression is an alignment property of the output section rather
than a section start address, and gold produces correct output even without the
fix.

-- 
You are receiving this mail because:
You are on the CC list for the bug.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]