[meta-ti] [PATCH] linux-ti33x-psp 3.2: avoid gold linker for Thumb2 kernel

Khem Raj raj.khem at gmail.com
Tue May 15 18:32:19 PDT 2012


On Tuesday, May 15, 2012, Denys Dmytriyenko <denis at denix.org> wrote:
> On Fri, May 11, 2012 at 06:21:12PM -0700, Khem Raj wrote:
>> On Thu, May 10, 2012 at 11:46 PM, Koen Kooi <koen at dominion.thruhere.net>
wrote:
>> >
>> > Op 11 mei 2012, om 04:41 heeft Denys Dmytriyenko het volgende
geschreven:
>> >
>> >> From: Denys Dmytriyenko <denys at ti.com>
>> >>
>> >> BeagleBone kernel is required to be built in Thumb2 mode for fast
boot.
>> >> Gold linker is not yet perfect for this, giving an internal error:
>> >>
>> >> | arm-linux-gnueabi-ld: internal error in thumb_branch_common, at
.../binutils-cross-2.22-r6/binutils-2.22/gold/arm.cc:4149
>> >>
>> >> While this fix can be put in generic linux.inc for all the kernels,
it's
>> >> better to test the Gold linker out as much as possible and only
disable it
>> >> for known issues, like this one (until it gets fixed, of course).
>> >>
>> >> Signed-off-by: Denys Dmytriyenko <denys at ti.com>
>> >
>> > Looks good to me.
>>
>> OK here is blind shot. Try this binutils patch and let me know if it
helps.
>>
>>
http://git.openembedded.org/openembedded-core-contrib/commit/?h=kraj/gold&id=b72f3238ad32ab420306a0226d8c2e57c52ddf45
>
> No luck - it now just segfaults where it used to give an internal error:
>
>  arm-angstrom-linux-gnueabi-gcc  -mno-thumb-interwork -marm
--sysroot=/OE/angstrom/build/tmp-angstrom_v2012_x-eglibc/sysroots/beaglebone
-Wp,-MD,kernel/.printk.o.d  -nostdinc -isystem
/OE/angstrom/build/tmp-angstrom_v2012_x-eglibc/sysroots/x86_64-linux/usr/lib/armv7a-angstrom-linux-gnueabi/gcc/arm-angstrom-linux-gnueabi/4.7.1/include
-I/OE/angstrom/build/tmp-angstrom_v2012_x-eglibc/work/beaglebone-angstrom-linux-gnueabi/linux-ti33x-psp-3.2-r11i+gitr720e07b4c1f687b61b147b31c698cb6816d72f01/git/arch/arm/include
-Iarch/arm/include/generated -Iinclude  -include
/OE/angstrom/build/tmp-angstrom_v2012_x-eglibc/work/beaglebone-angstrom-linux-gnueabi/linux-ti33x-psp-3.2-r11i+gitr720e07b4c1f687b61b147b31c698cb6816d72f01/git/include/linux/kconfig.h
-D__KERNEL__ -mlittle-endian -Iarch/arm/mach-omap2/include
-Iarch/arm/plat-omap/include -Wall -Wundef -Wstrict-prototypes
-Wno-trigraphs -fno-strict-aliasing -fno-common
-Werror-implicit-function-declaration -Wno-format-security
-fno-delete-null-pointer-checks -Os -marm -fno-dwarf2-cfi-asm
-mabi=aapcs-linux -mno-thumb-interwork -funwind-tables -mthumb
-Wa,-mimplicit-it=always -Wa,-mno-warn-deprecated -D__LINUX_ARM_ARCH__=7
-march=armv7-a -msoft-float -Uarm -Wframe-larger-than=1024
-fno-stack-protector -Wno-unused-but-set-variable -fomit-frame-pointer
-Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow
-fconserve-stack -DCC_HAVE_ASM_GOTO -D"KBUILD_STR(s)=#s"
-D"KBUILD_BASENAME=KBUILD_STR(printk)"
-D"KBUILD_MODNAME=KBUILD_STR(printk)" -c -o kernel/.tmp_printk.o
kernel/printk.c
>
> /bin/sh: line 1: 13513 Segmentation fault
 arm-angstrom-linux-gnueabi-ld
--sysroot=/OE/angstrom/build/tmp-angstrom_v2012_x-eglibc/sysroots/beaglebone
-r -o kernel/printk.o kernel/.tmp_printk.o -T kernel/.tmp_printk.ver
> make[1]: *** [kernel/printk.o] Error 139
>
>
> The contents of .tmp_printk.ver:
>
> __crc_oops_in_progress = 0xb1c3a01a ;
> __crc_console_drivers = 0x0fc34a55 ;
> __crc_console_set_on_cmdline = 0x2459bbcc ;
> __crc_printk = 0x27e1a049 ;
> __crc_vprintk = 0xbf8ba54a ;
> __crc_console_suspend_enabled = 0xfedd35fc ;
> __crc_console_lock = 0xfbaaf01e ;
> __crc_console_trylock = 0x40d04664 ;
> __crc_console_unlock = 0xc631580a ;
> __crc_console_conditional_schedule = 0xbef43296 ;
> __crc_console_stop = 0xfb0ca1d2 ;
> __crc_console_start = 0x7a3fb1e2 ;
> __crc_register_console = 0xb0d88192 ;
> __crc_unregister_console = 0x8db62ff8 ;
> __crc___printk_ratelimit = 0x6128b5fc ;
> __crc_printk_timed_ratelimit = 0x07cc4a5d ;
> __crc_kmsg_dump_register = 0x030d11a8 ;
> __crc_kmsg_dump_unregister = 0x3ca16d23 ;
>
> The full verbose log is attached. Any ideas?

I guess it needs to be debugged
>
> --
> Denys
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-ti/attachments/20120515/845ee1d7/attachment.html>


More information about the meta-ti mailing list