This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] [BZ #18410]: Incorrect handling of missing DT_PLTRELSZ
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Roland McGrath <roland at hack dot frob dot com>
- Cc: GNU C Library <libc-alpha at sourceware dot org>
- Date: Mon, 18 May 2015 14:02:40 -0700
- Subject: Re: [PATCH] [BZ #18410]: Incorrect handling of missing DT_PLTRELSZ
- Authentication-results: sourceware.org; auth=none
- References: <20150515192532 dot GA11684 at intel dot com> <20150518204145 dot C66522C3AD8 at topped-with-meat dot com>
On Mon, May 18, 2015 at 1:41 PM, Roland McGrath <roland@hack.frob.com> wrote:
> Can you add a test case?
It is already in glibc. elf/tst-audit10 fails on x86 using binutils with
commit a3747075ae478f27bf3e0643021a85fb6cdad0e3
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Tue May 12 13:11:48 2015 -0700
Allocate the first .plt entry space only if needed
Commit dd7e64d45b317128f5fe813a8da0b13b4ad046ae may optimize out
i386/x86-64 JUMP_SLOT relocation. If there is no JUMP_SLOT relocation
left, we don't need to the first .plt entry. This patch allocates
space for the first .plt entry only if we also reserve space for a PLT
slot for JUMP_SLOT relocation.
--
H.J.