Files
RedBear-OS/recipes/tools/gnu-binutils/source/ld/testsuite/ld-loongarch-elf/relax-section-align-overflow.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

26 lines
640 B
ArmAsm

# relocation overflow because .align
.text
addi.d $t0, $t1, 0
addi.d $t0, $t1, 0
# Add one NOP instruction
.align 3
addi.d $t0, $t1, 0
.section ".t.a", "ax"
addi.d $t0, $t1, 0
# In one try:
# first pass, la.local can be relaxed (0x120200010 - 0x120000014 = 0x1ffffc)
# second pass, the NOP addend by .align be deleted and pc decrease 4,
# but .L1 not decrease because section alignment.
# (0x120200010 - 0x120000010 = 0x200000)
la.local $t0, .L1
.fill 0x1ffff0
.section ".t.b", "ax"
.L1:
addi.d $t0, $t1, 0
# To make section address not change when first .align 3 delete NOP
.align 4
addi.d $t0, $t1, 0