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: GNU Binutils on OpeBSD


2011/4/25 Maxim Koltsov:
> 2011/4/25 Mike Frysinger:
>> On Sun, Apr 24, 2011 at 3:56 PM, ÐÐÐÑÐÐ ÐÐÐÑÑÐÐ wrote:
>>>> pretty sure this isnt a bug. Âyou probably need to `make install` first.
>>>
>>> Of course binutils are installed.
>>
>> the path you posted was of the *non-installed* library, and those
>> often have the build dir encoded in them. Ânot a bug.
>>
>> once you do run `make install`, the shared libs are relinked and the
>> temp paths removed. Âthis is simply how libtool works.
>
> No, this path comes from _installed_ binutils (sorry for bzipped log,
> maillist doesn't accept big files).
> See attached logs.

looks like your host linker sucks.  when linking libopcodes.so, libtool does:
-Wl,/home/maksbotan/gentoo/var/tmp/portage/sys-devel/binutils-2.21/work/build/opcodes/../bfd/.libs/libbfd.so

instead of encoding the DT_SONAME, it wrongly encodes the full path.
not really a bug in binutils that i can see.

$ echo 'main(){}' > test.c
$ readelf -d /usr/x86_64-pc-linux-gnu/lib/libbfd.so | grep SONAME
 0x000000000000000e (SONAME)     Library soname: [libbfd-2.21.so]
$ gcc test.c -Wl,/usr/x86_64-pc-linux-gnu/lib/libbfd.so
$ readelf -d a.out | grep NEEDED
 0x0000000000000001 (NEEDED)     Shared library: [libbfd-2.21.so]
 0x0000000000000001 (NEEDED)     Shared library: [libc.so.6]
-mike


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