Re: [PATCH/RFC] m68k: Add -ffreestanding to KBUILD_CFLAGS

Thorsten Glaser
2013-04-24T12:01:49Z

Michal Marek <mmarek <at> suse.cz> writes:

> exported strcpy symbol. An I would naively assume, that if the compiler
> sees a static inline definition of a function, then it will not generate
> a function call. Although, the C standard does require the standard

“If the compiler sees” but the thing is, the compiler does not see
a call to strlen, but a call to strncat and replaces that in-tree.

> library functions be available as external functions, so the compiler

Only for hosted environments.

Which is why -ffreestanding is the only correct thing to do.

bye,
//mirabilos