[fpc-devel] change default start function in cprt0.o

Dariusz Mazur darekm at emadar.com
Fri Dec 4 17:51:33 CET 2009


Jonas Maebe pisze:
>
> On 04 Dec 2009, at 11:00, Dariusz Mazur wrote:
>
>> next problem with use uclibc
>> cprt0.o need  _libc_start_main
>> but inn uclibc
>> _uClibc_main is used
>>
>> how to change it
>> prepare new cprt0.as ?
>
> I think the compiler is supposed to use ucprt0.as when you compile 
> against uclibc. Search for uclibc in compiler/systems/t_linux.pas to 
> see how the compiler decides which libc variant you are using.
thx
 to fpc.cfg I;ve added
-XR/home/darek/fpcarm/toolchain-arm-uclibc/

it works,
but now another problem

linker say that system.pp need  function _haltproc_eabi
which is absent in ucprt.0



-- 
  Darek







More information about the fpc-devel mailing list