Re: [PATCH] arm64: Fix relocation of env_addr if POSITION_INDEPENDENT=y

2021-06-29 Thread Tom Rini
On Tue, Jun 15, 2021 at 03:33:02PM +0900, Kunihiko Hayashi wrote: > If both POSITION_INDEPENDENT and SYS_RELOC_GD_ENV_ADDR are enabled, > wherever original env is placed anywhere, it should be relocated to > the right address. > > Relocation offset gd->reloc_off is calculated with SYS_TEXT_BASE i

Re: [PATCH] arm64: Fix relocation of env_addr if POSITION_INDEPENDENT=y

2021-06-26 Thread Marek Vasut
On 6/15/21 8:33 AM, Kunihiko Hayashi wrote: If both POSITION_INDEPENDENT and SYS_RELOC_GD_ENV_ADDR are enabled, wherever original env is placed anywhere, it should be relocated to the right address. Relocation offset gd->reloc_off is calculated with SYS_TEXT_BASE in setup_reloc() and env address

[PATCH] arm64: Fix relocation of env_addr if POSITION_INDEPENDENT=y

2021-06-14 Thread Kunihiko Hayashi
If both POSITION_INDEPENDENT and SYS_RELOC_GD_ENV_ADDR are enabled, wherever original env is placed anywhere, it should be relocated to the right address. Relocation offset gd->reloc_off is calculated with SYS_TEXT_BASE in setup_reloc() and env address gd->env_addr is relocated by the offset in in