[yocto] libgcc_s not present in Yocto image

Nathan Sowatskey nathan at nathan.to
Sat Feb 6 09:07:01 PST 2016


Thanks :-)

/lib/ld-linux-x86-64.so.2 /usr/bin/testprog 
Illegal instruction


/lib/ld-linux-x86-64.so.2 --list /usr/bin/testprog
	linux-vdso.so.1 (0x00007ffec29ee000)
	libsnmp.so.30 => /usr/lib/libsnmp.so.30 (0x00007fab23671000)
	libQt5Network.so.5 => /usr/lib/libQt5Network.so.5 (0x00007fab23506000)
	libQt5SerialPort.so.5 => /usr/lib/libQt5SerialPort.so.5 (0x00007fab234ed000)
	libQt5Core.so.5 => /usr/lib/libQt5Core.so.5 (0x00007fab22f69000)
	libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007fab22bee000)
	libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00007fab229db000)
	libpthread.so.0 => /lib/libpthread.so.0 (0x00007fab227be000)
	libc.so.6 => /lib/libc.so.6 (0x00007fab2241a000)
	libcrypto.so.1.0.0 => /lib/libcrypto.so.1.0.0 (0x00007fab21fd1000)
	libz.so.1 => /lib/libz.so.1 (0x00007fab21dbc000)
	libudev.so.0 => /lib/libudev.so.0 (0x00007fab21baf000)
	libdl.so.2 => /lib/libdl.so.2 (0x00007fab219aa000)
	libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0x00007fab21671000)
	librt.so.1 => /lib/librt.so.1 (0x00007fab21469000)
	libm.so.6 => /lib/libm.so.6 (0x00007fab2116a000)
	/lib64/ld-linux-x86-64.so.2 => /lib/ld-linux-x86-64.so.2 (0x0000560889d5d000)

 /lib/ld-linux-x86-64.so.2 --verify /usr/bin/testprog
root at qemux86-64:~# 

Regards

Nathan

> On 6 Feb 2016, at 08:51, Khem Raj <raj.khem at gmail.com> wrote:
> 
> by ld.so I mean dynamic linker shared lib not literally ld.so file
> it should be in /lib/ld*.so
> 
> 
> On Fri, Feb 5, 2016 at 11:36 PM, Nathan Sowatskey <nathan at nathan.to> wrote:
>> Hi Khem
>> 
>> Thanks for trying to help :-)
>> 
>> I read what you have suggested below as trying to execute “ld.so” and passing my program as an argument.
>> 
>> I can’t find a file called “ld.so” on either my Yocto image, or even the Ubuntu box that I am using to build it (which I use as a comparative reference).
>> 
>> What am I mis understanding please?
>> 
>> Regards
>> 
>> Nathan
>> 
>>> On 5 Feb 2016, at 21:49, Khem Raj <raj.khem at gmail.com> wrote:
>>> 
>>> On Fri, Feb 5, 2016 at 12:46 PM, Burton, Ross <ross.burton at intel.com> wrote:
>>>> 
>>>> On 5 February 2016 at 19:56, Khem Raj <raj.khem at gmail.com> wrote:
>>>>> 
>>>>>>> interpreter /lib64/ld-linux-x86-64.so.2
>>>>>> 
>>>>>> 
>>>>>> Does the loader hunt around for this, as this is certainly not present
>>>>>> in a
>>>>>> default OE image?
>>>>> 
>>>>> no it wont. infact thats the loader.
>>>> 
>>>> 
>>>> Yeah, what I meant is would the kernel hunt for that.  So, that's the
>>>> problem?
>>> 
>>> kernel wont. you can try doing
>>> 
>>> /path/to/ld.so <your-binary>
>>>> 
>>>> Ross
>> 




More information about the yocto mailing list