[PATCH] PR ld/17618: Check PC-relative offset overflow in PLT entry
H.J. Lu
hjl.tools@gmail.com
Wed Aug 9 22:09:00 GMT 2017
On Thu, Nov 20, 2014 at 1:37 PM, H.J. Lu <hongjiu.lu@intel.com> wrote:
> On Tue, Nov 18, 2014 at 11:11:13AM -0800, H.J. Lu wrote:
>> Hi,
>>
>> I checked in this patch to check PC-relative offset overflow in pushq
>> instruction in x86-64 PLT entry.
>>
>>
>
> I checked in this patch to avoid running pr17618.d test on x32 since
> it needs more than 4GB memory.
>
> H.J.
> ---
> diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
> index f959d55..8e69a89 100644
> --- a/ld/testsuite/ChangeLog
> +++ b/ld/testsuite/ChangeLog
> @@ -1,5 +1,9 @@
> 2014-11-20 H.J. Lu <hongjiu.lu@intel.com>
>
> + * ld-x86-64/pr17618.d: Don't run on x32.
> +
> +2014-11-20 H.J. Lu <hongjiu.lu@intel.com>
> +
> * ld-x86-64/plt-main1.rd: Updated for x32.
> * ld-x86-64/plt-main2.rd: Likewise.
> * ld-x86-64/plt-main3.rd: Likewise.
> diff --git a/ld/testsuite/ld-x86-64/pr17618.d b/ld/testsuite/ld-x86-64/pr17618.d
> index e640b40..b090aa0 100644
> --- a/ld/testsuite/ld-x86-64/pr17618.d
> +++ b/ld/testsuite/ld-x86-64/pr17618.d
> @@ -1,4 +1,5 @@
> #name: PLT PC-relative offset overflow check
> #as: --64
> #ld: -shared -melf_x86_64
> +#notarget: x86_64-*-linux*-gnux32
> #error: .*PC-relative offset overflow in PLT entry for `bar'
I checked in this patch to run PR ld/17618 test only with 64-bit
ELF linker.
--
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Run-PR-ld-17618-test-only-with-64-bit-ELF-linker.patch
Type: text/x-patch
Size: 2920 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20170809/fce9b1b8/attachment.bin>
More information about the Binutils
mailing list