[OE-core] [PATCH] directfb.inc: force bfd linker for armv7a
Andre McCurdy
armccurdy at gmail.com
Wed Nov 18 02:54:22 UTC 2015
On Tue, Nov 17, 2015 at 11:34 AM, Andre McCurdy <armccurdy at gmail.com> wrote:
> On Tue, Nov 17, 2015 at 11:16 AM, Andre McCurdy <armccurdy at gmail.com> wrote:
>> On Tue, Nov 17, 2015 at 9:09 AM, Phil Blundell <pb at pbcl.net> wrote:
>>> On Tue, 2015-11-17 at 16:44 +0000, Burton, Ross wrote:
>>>
>>> On 17 November 2015 at 15:16, Phil Blundell <pb at pbcl.net> wrote:
>>>
>>> Does the resulting directfb-csource binary actually work with that
>>> change? My recollection is that ld.bfd will just silently permit
>>> relocs that gold (correctly) refuses to allow.
>>>
>>> Personally I don't use DirectFB (and am constantly surprised it's still a
>>> thing) so at this point I'm not going to merge either of these patches until
>>> someone can confirm that their fix *works on hardware* instead of just
>>> fixing the build.
>>>
>>> I think that's a reasonable position. In any case, the underlying issue is
>>> a compiler bug and ought really to be fixed there rather than patching
>>> directfb or any other package that just happens to fall over it.
>>
>> The directfb-csource binary linked with the bfd linker segfaults on
>> startup, so it does indeed look like a compiler problem.
>
> Hmmm... maybe I spoke too soon. lsmod is also segfaulting on startup
> so there's something else going wrong with this build.
>
> If I copy the same directfb-csource binary into a rootfs built with
> security_flags.inc enabled then it runs OK...
OK, so the segfaults were due to building Jethro with prelink enabled :-(
With prelink disabled, directfb-csource linked with the bfd linker
runs fine on real HW:
root at eos:~# cat /proc/cpuinfo
processor : 0
model name : ARMv7 Processor rev 3 (v7l)
Features : swp half thumb fastmult vfp edsp neon vfpv3 tls
vfpv4 idiva idivt vfpd32 lpae evtstrm
CPU implementer : 0x42
CPU architecture: 7
CPU variant : 0x0
CPU part : 0x00f
CPU revision : 3
processor : 1
model name : ARMv7 Processor rev 3 (v7l)
Features : swp half thumb fastmult vfp edsp neon vfpv3 tls
vfpv4 idiva idivt vfpd32 lpae evtstrm
CPU implementer : 0x42
CPU architecture: 7
CPU variant : 0x0
CPU part : 0x00f
CPU revision : 3
Hardware : Broadcom STB (Flattened Device Tree)
Revision : 0000
Serial : 0000000000000000
root at eos:~#
root at eos:~# directfb-csource
directfb-csource version 1.7.7
Usage: directfb-csource [options] <imagefile>
--name=<identifer> specifies variable name
--format=<identifer> specifies surface format
--rgbformat=<identifer> specifies format for non-alpha images
--multi multiple images
--raw dump a single file directly to header
--dither-rgb16 dither images rendered to RGB16 surfaces
--help show this help message
--version print version information
See the directfb-csource(1) man-page for more information.
root at eos:~#
More information about the Openembedded-core
mailing list