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>
Sun, 6 Jan 2019 19:33:01 +0000 (19:33 +0000)
commitaaba9f339e3fc6306891582a8140570efa22cabd
tree74a966b222f4c0d55e015cab6f96ea1d467ccc89
parent72e99ba86df188a5f45090e18fd8e005483bc82c
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