[RFC] ld: fix --non-contiguous-regions error checks
Matthieu Longo
matthieu.longo@arm.com
Fri Jan 23 18:29:03 GMT 2026
On 01/03/2024 18:07, Alexey Lapshin wrote:
> - Fix segmentation fault in _bfd_riscv_relax_section():
> sym_sec->output_sectioin nullptr dereference
> https://github.com/bminor/binutils-gdb/blob/binutils-2_41-release/bfd/elfnn-riscv.c#L5207
>
> - Fatal error only for sections that has SEC_RELOC flag when a segment
> overflows. It allows to write sections with SEC_MERGE flag to next
> segment.
>
> In case changes are good to go there are also some workarounds in the code these should be removed.
> Like this:
> https://github.com/bminor/binutils-gdb/blob/binutils-2_41-release/bfd/elf32-arm.c#L5052-L5058
>
For reference, this issue is resolved by https://inbox.sourceware.org/binutils/20251014104611.1855586-1-matthieu.longo@arm.com/.
Matthieu
More information about the Binutils
mailing list