This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Allow pie links to create PLT entries
- From: Cary Coutant <ccoutant at google dot com>
- To: Sriraman Tallam <tmsriram at google dot com>
- Cc: "H.J. Lu" <hjl dot tools at gmail dot com>, binutils <binutils at sourceware dot org>
- Date: Thu, 5 Mar 2015 11:04:39 -0800
- Subject: Re: Allow pie links to create PLT entries
- Authentication-results: sourceware.org; auth=none
- References: <CAAs8HmyEG-m74+vcKFzuFTzVB-1cQvp1K_k3Hji=9ZnFci7CtA at mail dot gmail dot com> <CAAs8HmwvFzb6+6D+9PXCTLv+G+jFt9saMwq6wcfs7LWd2-of7Q at mail dot gmail dot com> <CAMe9rOpo58kfeufRO0w=8t=+=aK7T0QKkRzW5caAvvhXPUqZEQ at mail dot gmail dot com> <1981946 dot LU77O9BO28 at laptop1 dot gw dot ume dot nu> <CAAs8HmyGNKQFt5nnA-CpZtAVwLXTPgA3iB7fkrLa-_OhXiwQVA at mail dot gmail dot com>
* x86_64.cc (Scan::get_reference_flags): Mark PC relative relocations
as possibly created from function calls too.
(Scan::global): Allow PLT entry for PC32 relocation of a function symbol
for pie links. Set the address of the dynamic symbol table entry for
this function to that of the PLT entry.
This is OK. Thanks!
-cary