This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
Re: Redboot and Evaluator 7T : newlib is Angel based
- From: "J. Johnston" <jjohnstn at redhat dot com>
- To: Pierre Habraken <Pierre dot Habraken at imag dot fr>
- Cc: eCos Discussion <ecos-discuss at sources dot redhat dot com>,newlib at sources dot redhat dot com
- Date: Fri, 21 Feb 2003 12:15:29 -0500
- Subject: Re: Redboot and Evaluator 7T : newlib is Angel based
- Organization: Red Hat Inc.
- References: <Pine.SGI.4.40.0302191233470.1037613-100000@shell01.TheWorld.com> <20030219174138.A6E4578A6D@deneb.localdomain> <1045676870.18484.6026.camel@hermes.chez-thomas.org> <3E53C60E.6000305@eCosCentric.com> <20030219192255.962AE78A6D@deneb.localdomain> <3E54E606.D1FDC422@imag.fr> <1045751610.18487.7568.camel@hermes.chez-thomas.org> <3E54ED66.FB87A318@imag.fr> <3E55DE1B.3555D49F@imag.fr> <3E5623BB.2BE786E@imag.fr>
Pierre Habraken wrote:
Pierre Habraken wrote:
[...]
But now I am faced to a new problem : newlib (which is linked to my
program), and especially the C run time sartup code, uses SWI calls to
Angel (swi 0x00123456), which one has been replaced by Redboot !
Does anyone know how to tell newlib not to use Angel services ?
This is probably a stupid question : I understand that I'll have to
write my own crt0.S, will I ?
I just added a new configuration option to newlib: --disable-newlib-supplied-syscalls
to allow you to build newlib without including syscalls.
The newlib/libc/sys/arm directory has been modified to recognize
this new option and not build syscalls.o. There is also a __NO_SYSCALLS__ C flag
set on that you can use within files that you don't want to exclude entirely.
This is relatively new so if you find a file that needs alteration, please let
the newlib list know.
There is a redboot-crt0.S file provided in the libgloss/arm directory. There
is also an elf-redboot.specs file which handles the crt0 and library specification
for you. You can specify the file via the -specs= option of gcc.
-- Jeff J.