Questions on crosstool
Dan Kegel
dank@kegel.com
Tue Aug 10 07:36:00 GMT 2004
Bill Garner wrote:
>>> However during linking to generate vmlinux, there were
>>> several "relocation truncated to fit: R_ARM_PC24" errors.
>>
>> Those are often actually undefined symbols. Can you
>> post the exact error messages, with some context?
>> You might consider adding -fno-unit-at-a-time to your CFLAGS;
>> it can prevent functions from being optimized out.
>
> I used -fno-unit-at-a-time and all the linker "relocation
> truncated to fit:" and most of the "undefined reference" errors
> went away. Thanks for the help.
Excellent.
> There are only two error left now:
>
> net/network.o(.text.init+0x1428): In function `sys_accept':
> /home/work/2421/test/net/socket.c:1080: undefined reference to `.L294'
> net/network.o(.text.init+0x142c): In function `sys_connect':
> /home/work/2421/test/net/socket.c:1098: undefined reference to `.L295'
BTW, there are quite a few patches being submitted to add
gcc-3.4 support to the mainline kernel. I wouldn't be surprised
if a patch or two were needed. For instance, have a look at
http://marc.theaimsgroup.com/?l=linux-kernel&m=109155989525571&w=2
Which kernel were you trying to compile? Oh, linux-2.4.21 for arm.
Yeah, I bet that doesn't have any gcc-3.4 fixes in it yet. Can
you try a more recent one?
- Dan
--
My technical stuff: http://kegel.com
My politics: see http://www.misleader.org for examples of why I'm for regime change
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
More information about the crossgcc
mailing list