3 Commits

Author SHA1 Message Date
Weining Lu
502ec2e5a0 [test] Make dwarf-loongarch-relocs.ll non-sensitive of function alignment 2024-01-24 11:54:11 +08:00
Weining Lu
baba7e4175 [test] Update dwarf-loongarch-relocs.ll
Address buildbot faiures:
http://45.33.8.238/macm1/77360/step_11.txt
http://45.33.8.238/linux/128902/step_12.txt
2024-01-24 11:03:16 +08:00
Jinyang He
ed7f4edc19
[LoongArch] Add relaxDwarfLineAddr and relaxDwarfCFA to handle the mutable label diff in dwarfinfo (#77728)
When linker-relaxation is enabled, part of the label diff in dwarfinfo
cannot be computed before static link. Refer to RISCV, we add the
relaxDwarfLineAddr and relaxDwarfCFA to add relocations for these label
diffs. Calculate whether the label diff is mutable. For immutable label
diff, return false and do the other works by its parent function.
2024-01-16 13:20:13 +08:00