Fix sparc assembly when compiled as PIC
authorJames Clarke <jrtc27@jrtc27.com>
Wed, 18 Jul 2018 21:30:42 +0000 (22:30 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 19 Jul 2018 00:13:54 +0000 (01:13 +0100)
commit9cad556a98fa4ae76ed0bdebbd34cf872d02fd39
tree90361784de32bdec5cf0b17d1af7e0873fb10026
parent3982cba63fb0f6f2b9e245f44152cc967bfcee40
Fix sparc assembly when compiled as PIC

Some distributions default to PIE for their compilers, which on sparc is passed
on to the assembler. Since the behaviour of %hi/%lo changes under PIC to become
GOT offsets, the current assembly files need adapting to not try to use a GOT
offset as an absolute address.

Gbp-Pq: Name sparc-pie.patch
usr/include/arch/sparc/machine/asm.h
usr/include/arch/sparc64/machine/asm.h [new file with mode: 0644]
usr/include/arch/sparc64/machine/frame.h [new file with mode: 0644]
usr/klibc/arch/sparc/pipe.S
usr/klibc/arch/sparc/syscall.S
usr/klibc/arch/sparc/sysfork.S
usr/klibc/arch/sparc64/pipe.S
usr/klibc/arch/sparc64/syscall.S
usr/klibc/arch/sparc64/sysfork.S