Commit 1d6718b
committed
[RISCV][lld] Guarding lld relaxation for RISCV
Based on #123248 (comment),
the relaxation algorithm assumes relaxing a call will shift the later
function forward by the same bytes we removed. As some sections are
between call and its call target are 32-byte aligned, the call and call
target sections might not be the same distance apart. We guard band the
relaxation so it stops the relaxation loop and take the last state.1 parent 9543e9e commit 1d6718b
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
902 | 902 | | |
903 | 903 | | |
904 | 904 | | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
905 | 908 | | |
906 | 909 | | |
907 | 910 | | |
| |||
0 commit comments