[meta-freescale] image-prelink (can) cause SIGSEGV on program startup (when run under GDB)

Bjørn Forsman bjorn.forsman at gmail.com
Tue Jan 12 14:53:41 PST 2016


On 12 January 2016 at 21:44, Christian Ege <k4230r6 at gmail.com> wrote:
> Hi Bjørn,
>
> Am 07.01.2016 um 10:49 schrieb Bjørn Forsman <bjorn.forsman at gmail.com>:
>> I guess you mean warnings like:
>>
>> (gdb) set sysroot
>> ~/poky-toolchain/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi
>> warning: .dynamic section for
>> "/home/bfo/poky-toolchain/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/lib/libQt5Multimedia.so.5"
>> is not at the expected address (wrong library or version mismatch?)
>> warning: .dynamic section for
>> "/home/bfo/poky-toolchain/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/lib/libQt5Widgets.so.5"
>> is not at the expected address (wrong library or version mismatch?)
>> warning: .dynamic section for
>> "/home/bfo/poky-toolchain/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/lib/libQt5Gui.so.5"
>> is not at the expected address (wrong library or version mismatch?)
>> ...
>>
>> The weird part is that these warnings seem to come no matter what
>> (prelink or not). (I guess I should triple check that…)
>
> yes, those messages. They disappeared after removing the prelink. I’ll
> double check when I am in the office tomorrow.

I checked again, I still have those warning messages. That is, even
without "image-prelink". (But everything seems to work fine now.)

Exact list of warnings from this run:

warning: .dynamic section for
"/home/bfo/poky-toolchain/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/lib/libthriftqt5-0.9.3.so"
is not at the expected address (wrong library or version mismatch?)
warning: .dynamic section for
"/home/bfo/poky-toolchain/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/lib/libQt5Widgets.so.5"
is not at the expected address (wrong library or version mismatch?)
warning: .dynamic section for
"/home/bfo/poky-toolchain/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/lib/libQt5Core.so.5"
is not at the expected address (wrong library or version mismatch?)
warning: .dynamic section for
"/home/bfo/poky-toolchain/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/lib/libcrypto.so.1.0.0"
is not at the expected address (wrong library or version mismatch?)
warning: .dynamic section for
"/home/bfo/poky-toolchain/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/lib/libpulse.so.0"
is not at the expected address (wrong library or version mismatch?)
warning: .dynamic section for
"/home/bfo/poky-toolchain/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/lib/pulseaudio/libpulsecommon-6.0.so"
is not at the expected address (wrong library or version mismatch?)


> What kind of Toolchain are you using?
> When you are using bitbake meta-toolchain you may have to create a sys root
> from your roots:
> http://www.yoctoproject.org/docs/2.0/adt-manual/adt-manual.html#extracting-the-root-filesystem
> Or consider to switch to
>
> bitbare <your image> -c populate_sdk
>
> http://www.yoctoproject.org/docs/2.0/adt-manual/adt-manual.html#optionally-building-a-toolchain-installer

Yes, I use "bitbake my-image -c populate_sdk". And because we use Qt
for application development, my-image.bb has "inherit
populate_sdk_qt5".

- Bjørn


More information about the meta-freescale mailing list