Re: m68k: main.c:(.init.text+0x730): undefined reference to `strlen'

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Andreas Schwab <schwab@...>
Cc: Geert Uytterhoeven <geert@...>, Linux/m68k <linux-m68k@...>, Linux Kernel Development <linux-kernel@...>
Date: Wednesday, May 14, 2008 - 10:10 am

On Wed, May 14, 2008 at 10:37:57AM +0200, Andreas Schwab wrote:

m68k is one of the architectures not using -ffreestanding, so this 
kind of problems is somehow expected...

We could add -ffreestanding on m68k.

Or replace all the strlen stuff in include/asm-m68k/string.h with a 
function prototype, which lets gcc choose itself whether it wants to use 
the builtin or the version from lib/string.c, and makes an out-of-line 
version of the function available for caes like the one we face here.


cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
m68k: main.c:(.init.text+0x730): undefined reference to `str..., Geert Uytterhoeven, (Wed May 14, 4:02 am)
Re: m68k: main.c:(.init.text+0x730): undefined reference to ..., Adrian Bunk, (Wed May 14, 10:10 am)
Re: m68k: main.c:(.init.text+0x730): undefined reference to ..., Geert Uytterhoeven, (Wed May 14, 4:14 pm)