This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: RFC: ld.so: Add DT_FLAGS_2 and DF_2_GNU_IFUNC [BZ #20019]
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).
Cheers,
Carlos.