RFC: ld.so: Add DT_FLAGS_2 and DF_2_GNU_IFUNC [BZ #20019]

H.J. Lu hjl.tools@gmail.com
Mon May 28 19:52:00 GMT 2018


On Mon, May 28, 2018 at 9:56 AM, Carlos O'Donell <carlos@redhat.com> wrote:
> On 05/25/2018 06:01 PM, H.J. Lu wrote:
>> On Fri, May 25, 2018 at 2:52 PM, Florian Weimer <fweimer@redhat.com> wrote:
>>> On 05/25/2018 10:26 PM, H.J. Lu wrote:
>>>>
>>>> +$(objpfx)tst-relocmod1b.so: $(objpfx)tst-relocmod1b.os \
>>>> +                           $(objpfx)tst-relocmod1a.so
>>>> +       $(LINK.o) -nostdlib -nostartfiles -shared -o $@ -Wl,-z,now \
>>>> +                 $(filter-out $(shlib-lds),$^)
>>>
>>>
>>> Does this still link against libc.so.6?  If not, then this is the bug.
>>
>> It is not linked against libc.so.6 and it is done on purpose.
>
> That's OK, but then you *cannot* call libc.so.6 functions, since you have
> no dependency against the library, symbol versioning won't work correctly,
> and the dynamic loader will not order initialization correctly (as you note).
>

I withdrew this.


-- 
H.J.



More information about the Libc-alpha mailing list