Re: [PATCH] AMD GCN Port

Jeff Johnston <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <CAOox84t5u6UFcRRrRROGPN9RZrqkJBt7Kho0enHdS3=CkQfLxw@mail.gmail.com>
On Thu, Jan 10, 2019 at 12:56 PM Andrew Stubbs <[email protected]>
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
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.