On Tue, Feb 17, 2015 at 11:13 AM, Michael Haubenwallner
<michael.haubenwall...@ssi-schaefer.com> wrote:
>
> Am 2015-02-17 um 15:57 schrieb David Edelsohn:
>> On Tue, Feb 17, 2015 at 3:03 AM, Michael Haubenwallner
>> <michael.haubenwall...@ssi-schaefer.com> wrote:
>>> Hi David,
>>>
>>> according to LIB_SPEC found in config/rs6000/aix*.h, pthread linking was 
>>> done with
>>> "-lpthreads -lc_r libc.a" for aix43, which simplified to "-lpthreads -lc" 
>>> with aix51.
>>>
>>> But libgcc_s still is linked the aix43 way with "-lpthreads -lc_r libc.a".
>>>
>>> As libc_r.a is a symlink to libc.a now, do you know if its shared objects 
>>> are loaded
>>> both as "libc.a(shr.o)" and "libc_r.a(shr.o)", or as "libc.a(shr.o)" only?
>>> Can this be a problem worth a bug entry?
>>
>> What do you mean by "loaded as"?  There is only one shared object
>> loaded into the shared library segment.
>
> What I mean with "loaded as" is that the runtime loader does encounter both 
> names
> "libc.a(shr.o)" and "libc_r.a(shr.o)" in the loader sections of various 
> dependant
> shared libs for one executable - and has to detect them as the same shared 
> object.

$ genkld

lists the shared libraries loaded in memory.

Also, if you look at the dependencies of the libgcc_s.a shared object,
it only depends on libc.a

$ dump -H libgcc_s.a

Thanks, David

Reply via email to