On Thu, Jan 15, 2015 at 8:30 AM, H.J. Lu <hjl.to...@gmail.com> wrote:
> On Thu, Jan 15, 2015 at 8:24 AM, Mike Stump <mikest...@comcast.net> wrote:
>> So, I was hoping that someone would step forward and review this.  I’d like 
>> for a reviewer to consider, is this the type of error messages we want to 
>> vend to the poor user?  It strikes me as, well, icky.  Should -fPIE imply 
>> -fPIC?
>
> It is an optimization:
>
> https://gcc.gnu.org/ml/gcc-cvs/2014-12/msg00206.html
>
> If linker supports copy reloc in PIE, we turn off PIC for the data access.
> Since the symbol is undefined in this case, linker complains.
>

FYI, I opened a linker bug:

https://sourceware.org/bugzilla/show_bug.cgi?id=17847

I will suppress the second linker message.

-- 
H.J.

Reply via email to