[PATCH] Re: sparc64-elf crt0.o fails to compile

Yaakov Selkowitz yselkowi@redhat.com
Fri Dec 26 04:52:00 GMT 2014


On 2014-12-25 21:48, Gedare Bloom wrote:
> Without looking at the source--this error refers to using a global
> register other than g0 or g1 without "declaring" it as used. Most
> often this presents as g2 or g3. The ABI restricts the use of global
> registers. You need to add:
>
> .register %g2, #scratch
>
> to the top of the assembly file to specify that g2 is used in the assembly.

OK, thanks for the hint.  I used the attached patch to get 
newlib/libgloss to compile for sparc64-elf.

-- 
Yaakov Selkowitz
Associate Software Engineer, ARM
Red Hat, Inc.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sparc64-compile.patch
Type: text/x-patch
Size: 2592 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20141226/ac26c734/attachment.bin>


More information about the Newlib mailing list