sba1 / adtools

Experimental GNU toolchain for AmigaOS
31 stars 18 forks source link

New -mcrt option #116

Open rolsen74 opened 2 years ago

rolsen74 commented 2 years ago

This is an enhancement request

I have written a new c-library for AmigaOS4.

Currently gcc is hardcoded to clib2 or newlib ... I like too have a new option ralib for -mcrt .. that way I can avoid overwritting the clib2 install.

Currently there is a

sdk:clib2 sdk:newlib sdk:local/common sdk:local/clib2/include sdk:local/clib2/lib sdk:local/newlib/include sdk:local/newlib/lib

I like to add

sdk:ralib/include sdk:ralib/lib sdk:local/ralib/include sdk:local/ralib/lib

When linking a program I mimic clib2 and have these 3 objects

crt0.o crtbegin.o crtend.o

crt0.o is really not used its just have the assembler instruction 'blr' witch just return. so its not needed.

All the objects and include files can be obtained here

http://os4depot.net/?function=showfile&file=development/library/reactivec_lib.lha

Those files a released under a BSD license so you can redistrubute them if you want.

Regards René