[PATCH] binutils: partially revert 17c6c3b99156fe82c1e637e1a5fd9f163ac788c8

Jan Beulich jbeulich@suse.com
Fri Nov 18 10:01:38 GMT 2022


On 18.11.2022 10:37, 徐持恒 Xu Chiheng via Binutils wrote:
> Sorry, but I really think this is a regression.
> 64 bit linker originally could do relocation on 32 bit object code. It
> worked perfectly.

And it still can, provided you pass in well-formed 32-bit object files.

> Setting src_mask to 0, ignores the addend value in the section content.

Which is precisely what the ELF spec says the behavior is for RELA type
relocations. _Not_ ignoring section contents was the bug here.

You are, btw, not the first one to notice this perceived regression. But
that still doesn't actually make it one. It is merely a change in
behavior to fix a long-standing bug.

Jan


More information about the Binutils mailing list