Re: [PATCH] Makefile: apply dynamic relocations for LLD

2022-10-11 Thread Tom Rini
On Mon, Sep 26, 2022 at 08:47:40PM +, Alistair Delva wrote: > From: Nick Desaulniers > > It seems that for aarch64, unless we apply dynamic relocations to the > location being relocated, we fail to boot. > > As Fangrui notes: > For dynamic relocations using the RELA format (readelf -Wr),

[PATCH] Makefile: apply dynamic relocations for LLD

2022-09-26 Thread Alistair Delva
From: Nick Desaulniers It seems that for aarch64, unless we apply dynamic relocations to the location being relocated, we fail to boot. As Fangrui notes: For dynamic relocations using the RELA format (readelf -Wr), GNU ld sets the initial content to r_addend; ld.lld doesn't do that by defa