This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] PR ld/17618: Check PC-relative offset overflow in PLT entry


On Sat, Oct 21, 2017 at 4:37 PM, Hans-Peter Nilsson
<hans-peter.nilsson@axis.com> wrote:

> For what appears to be your purposes (detecting overflow in the
> target address space, IIUC), you should check the address-space
> of a linked target object, not the tools; not whatever format

These tests don't care about target address space.

> the host uses for the just-build linker.  While I can agree that
> it's less likely that you can build a 64-bit-capable target
> linker that can link a >32-bit binary (i.e. actually that large
> objects) on a 32-bit host, you're still testing the wrong thing
> here, IMO.
>
> To wit, you can't imply a 64-bit target address by observing
> that the just-built linker executable is ELF64, except on native
> builds.

Some linker tests need to allocate more than 4GB memory,
which only work if linker is an ELF64 linker.

-- 
H.J.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]