binutils-gdb/ld/testsuite/ld-x86-64/apic.s
Jan Beulich 43083a502b x86-64: always use unsigned 32-bit reloc for 32-bit addressing w/o base reg
Except for %eip-relative addressing, where we don't have a suitable
relocation type silently wrapping at the 4G boundary, consistently
force use of R_X86_64_32 (in ELF terms) instead of its sign-extending
counterpart. This wasn't right in case there was no base register in
the addressing expression.
2017-11-23 11:02:30 +01:00

14 lines
151 B
ArmAsm

.text
.intel_syntax noprefix
.global _start
_start:
ret
apic_read:
mov eax, [edi*4+APIC_BASE]
ret
apic_write:
mov [edi*4+APIC_BASE], esi
ret