This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: [PATCH] AMD GCN Port
On Thu, Jan 10, 2019 at 12:56 PM Andrew Stubbs <andrew_stubbs@mentor.com>
wrote:
> On 10/01/2019 17:17, Jeff Johnston wrote:
> > I would suggest you look at having your syscalls in libgloss at the
> > start. If you are certain there will never be a need for linking in
> > different
> > versions, you can put them in libc/sys with have_crt0="no".
>
> Is there an existing target you'd suggest as a template for the
> configure and make files? There seems to be a lot of variation going on
> in there.
>
>
Try libc/sys/sh as a basis. You have to replace the creat.c in configure.in
with a file you have.
Don't specify crt0.o in Makefile.am and put in your source files. Create
an empty sys directory under
you libc/sys/xxxx dir to possibly use in the future to replace sys includes.
Other than that, most of your patch from machine dir goes there. The
libc/machine/xxxx dir should have anything
you are overriding in shared library (often optimized string routines, but
at minimum, setjmp/longjmp
(see libc/machine/fr30).
-- Jeff J.
Thanks
>
> Andrew
>