Files
RedBear-OS/recipes/tools/gnu-binutils/source/ld/testsuite/ld-x86-64/pr20253-2b.S
T
vasilito ff4ff35918 feat: track all source trees in git — full fork offline-first model
Red Bear OS is a full fork. All sources must be available from git clone
with zero network access. Removed gitignore rules that excluded fetched
source trees under recipes/*/source/, local/recipes/kde/*/source/,
local/recipes/qt/*/source/, and vendor source trees.

Build artifacts (target/, build/, source.tar, *.o, *.so) remain excluded.

127291 files added — kernel, relibc, base, bootloader, pkgar, all KDE/Qt
frameworks, mesa, wayland, DRM drivers, and every other recipe source.
2026-05-14 10:55:53 +01:00

47 lines
833 B
ArmAsm

.section .rodata.str1.1,"aMS",@progbits,1
.LC0:
.string "PASS"
.text
.globl check
.type check, @function
check:
subq $8, %rsp
call *get_func1@GOTPCREL(%rip)
#ifdef CHECK_PLT
cmpl $func1, %eax
#else
cmpq func1@GOTPCREL(%rip), %rax
#endif
jne .L3
movq func1_p@GOTPCREL(%rip), %rdx
#ifdef __LP64__
cmpq %rax, (%rdx)
#else
cmpl %eax, (%rdx)
#endif
jne .L3
call *func1@GOTPCREL(%rip)
cmpl $1, %eax
jne .L3
call *call_func1@GOTPCREL(%rip)
cmpl $1, %eax
jne .L3
call *get_func2@GOTPCREL(%rip)
movq func2_p@GOTPCREL(%rip), %rdx
#ifdef __LP64__
cmpq %rax, (%rdx)
#else
cmpl %eax, (%rdx)
#endif
jne .L3
call *call_func2@GOTPCREL(%rip)
cmpl $2, %eax
jne .L3
leaq .LC0(%rip), %rdi
addq $8, %rsp
jmp *puts@GOTPCREL(%rip)
.L3:
call *abort@GOTPCREL(%rip)
.size check, .-check
.section .note.GNU-stack,"",@progbits