ff4ff35918
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.
64 lines
967 B
ArmAsm
64 lines
967 B
ArmAsm
// Test DT_RELR with references in discarded sections.
|
|
|
|
.text
|
|
.p2align 3
|
|
.global _start
|
|
_start:
|
|
nop
|
|
|
|
sym_local:
|
|
nop
|
|
|
|
.global sym_hidden
|
|
.hidden sym_hidden
|
|
sym_hidden:
|
|
nop
|
|
|
|
.global sym_global
|
|
sym_global:
|
|
nop
|
|
|
|
.global sym_global_abs
|
|
.set sym_global_abs, 42
|
|
|
|
.global sym_weak_undef
|
|
.weak sym_weak_undef
|
|
|
|
.section .discard.got_local,"ax"
|
|
adrp x0, :got:sym_local
|
|
ldr x0, [x0, :got_lo12:sym_local]
|
|
|
|
.section .discard.got_global,"ax"
|
|
adrp x0, :got:sym_global
|
|
ldr x0, [x0, :got_lo12:sym_global]
|
|
|
|
.section .discard.local,"a"
|
|
.p2align 1
|
|
discard_local:
|
|
.xword sym_local
|
|
|
|
.section .discard.hidden,"a"
|
|
.p2align 1
|
|
discard_hidden:
|
|
.xword sym_hidden
|
|
|
|
.section .discard.global,"a"
|
|
.p2align 1
|
|
discard_global:
|
|
.xword sym_global
|
|
|
|
.section .discard.global_abs,"a"
|
|
.p2align 1
|
|
discard_global_abs:
|
|
.xword sym_global_abs
|
|
|
|
.section .discard.weak_undef,"a"
|
|
.p2align 1
|
|
discard_weak_undef:
|
|
.xword sym_weak_undef
|
|
|
|
.section .discard._DYNAMIC,"a"
|
|
.p2align 1
|
|
discard_DYNAMIC:
|
|
.xword _DYNAMIC
|