This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Purpose of startup files for ARM


Richard, David:



Note that newlib also has library calls that call the ANGEL SWI. You will have to rewrite the relevant stubs if you want to use the calls.


It turns out that this isn't too hard to fix. Rebuild newlib/libc/sys/arm/crt0.S with ARM_RDI_MONITOR and ARM_RDP_MONITOR disabled, that turns off all the Angel-related SWI stuff. After configuring newlib, grep around for those two macros in the Makefiles, and nuke them. Then do the make all install.


Building like this exposes a bug, however. Around line 236 in crt0.S, you'll see that the initial stack pointer gets uninitialized if you turn off all the Angel stuff. Uncomment the ".word 0x80000", and set it to the value that's appropriate for your hardware.


Regards,



b.g.


--
Bill Gatliff
Embedded systems and Free Software.  Yea, it *is* all that!
bgat@billgatliff.com



------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]