This is the mail archive of the binutils@sourceware.org mailing list for the binutils 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: gold not finding symbols in ld-linux.so.2


Ian Lance Taylor wrote:
In Symbol_table::warn_about_undefined_dynobj_symbol I see that we
explicitly don't warn about libraries found in the system library
directory, that being the directory in which we find libc.so. I
wonder why that didn't help here?
I threw in a few printfs and that check is returning false for libpthread. In this case, that's because the library's path is /usr/lib/libpthread.so and it only checks to see if it is in system_library_directory_, which is /lib. On the other hand, it returns true for libc because it thinks the library's path is /lib/libc.so.6. I guess this is because libc is a GROUP file while libpthread is just a symlink? ld -verbose shows that it finds /usr/lib/libc.so first, then it goes on to open the two files in the GROUP immediately after.

Eric


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