Closed ibara closed 5 years ago
This error was caused by relocation sections being placed before their targets (f.ex .rela.text before .text). Turns out lld is more pedantic than gnu linker, so I fixed some more issues as well before it stopped complaining. Should work now.
Thanks for reporting this. Using lld was very useful to validate the generated object files.
Great! Can confirm that lld can now link the selfhost lacc here too.
Hi --
lacc
is unable to build itself when the linker islld
, the LLVM linker. When runningmake bin/selfhost/lacc
, the bootstraplacc
builds and links fine. When the bootstraplacc
tries to buildlacc
,lld
gives the complaint seen in the title of this issue report.Both GNU
ld
and GNUgold
happily link the selfhostedlacc
so this seems to be something unique tolld
.