This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [Patch] ld: check for address space overflow
On Mon, Mar 13, 2017 at 2:46 AM, Tristan Gingold <gingold@adacore.com> wrote:
>
>> On 11 Mar 2017, at 02:14, Alan Modra <amodra@gmail.com> wrote:
>>
>> On Fri, Mar 10, 2017 at 03:29:24PM +0100, Tristan Gingold wrote:
>>> ld: add an error in case of address space overflow.
>>>
>>> ld/
>>> * ldlang.c (lang_check_section_addresses): Check for address space
>>> overflow.
>>> * testsuite/ld-checks/checks.exp (overflow_check): New procedure
>>> * testsuite/ld-checks/over.s: New test source.
>>> * testsuite/ld-checks/over.d: New test.
>>> * testsuite/ld-checks/over2.s: New test source.
>>> * testsuite/ld-checks/over2.d: New test.
>>
>> OK.
>
> Thanks, just committed.
>
> Tristan.
>
This caused
FAIL: ld-elf/loadaddr1
FAIL: ld-elf/loadaddr2
FAIL: ld-elf/seg
on Linux/i386 with 64-bit VMA.
--
H.J.