This is the mail archive of the
mailing list for the binutils project.
Re: [PATCH] i386: Remove PLT0 and use non-lazy PLT if PLT0 is unused
- From: Florian Weimer <fweimer at redhat dot com>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>
- Cc: binutils at sourceware dot org, Carlos O'Donell <carlos at redhat dot com>
- Date: Sat, 6 May 2017 20:55:53 +0200
- Subject: Re: [PATCH] i386: Remove PLT0 and use non-lazy PLT if PLT0 is unused
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx05.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx05.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=fweimer at redhat dot com
- Dkim-filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 6B97637EE1
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 6B97637EE1
- References: <20170502203156.GA11102@intel.com> <20170504163120.GA19140@intel.com> <20170506151138.GA4151@intel.com>
On 05/06/2017 05:11 PM, H.J. Lu wrote:
1. Call external function.
2. Call internal IFUNC function. The best implementation is selected
for the target processor at run-time.
3. Act as the canonical function address.
Audit support is missing from this list. Audit support needs a PLT stub
which calls the audit trampoline with some sort of function index or
I'm concerned that -z now in recent binutils (even without this patch)
removes audit support, when before, audit support was not impacted by -z
now (I think, I'm not sure on this point).
We really must avoid hardening flags which have profound semantic
implications on generated binaries because it discourages people from