bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/22269] Undefined weak symbols isn't resolved to 0 in static PIE


From: hjl.tools at gmail dot com
Subject: [Bug ld/22269] Undefined weak symbols isn't resolved to 0 in static PIE
Date: Tue, 10 Oct 2017 05:30:02 +0000

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

--- Comment #8 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Alan Modra from comment #4)
> I agree that undefined weak symbols probably ought to resolve to 0 in a
> static PIE.  To do that on ppc it would be reasonable to add the following
> to elf32.em after_parse
> 
>   if (link_info.dynamic_undefined_weak == -1
>       && link_info.nointerp)
>     link_info.dynamic_undefined_weak = FALSE;
> 
> or perhaps something a little more specific to static PIE..

This doesn't work with

-pie --no-dynamic-linker -z dynamic-undefined-weak

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]