This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Android Native GCC 4.9.2 Build Fails at Dynamic libgcc


On 12/22/2014 06:40 PM, Cyd Haselton wrote:
>> What does your /usr/lib/libc.so look like?  I'd expect to see
>> > something like this:
>> >
>> > /* GNU ld script
>> >    Use the shared library, but some functions are only in
>> >    the static library, so try that secondarily.  */
>> > OUTPUT_FORMAT(elf64-x86-64)
>> > GROUP ( /lib64/libc.so.6 /usr/lib64/libc_nonshared.a  AS_NEEDED ( /lib64/ld-linux-x86-64.so.2 ) )
>
> I'm not quite sure what you're asking; I'm using a sysroot with the
> build compiler and the libc.so is not a script but an actual library.
> Were you asking about the build link script or the stage1 link script?

I'm asking about the file /usr/lib/libc.so.

If it's a script which looks like the file above you'll get
the function definitions you need when you link against libc,
even though dlopen is defined in ld-blah.so.

Andrew.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]