[PATCH] RISC-V: Segment fault in riscv_elf_append_rela.

Alan Modra amodra@gmail.com
Thu Mar 9 08:33:58 GMT 2023


On Thu, Mar 09, 2023 at 04:04:46PM +0800, Nelson Chu wrote:
>     * elfnn-riscv.c (riscv_elf_append_rela): Abort when the dynamic section
>     doesn't exist.

It would be nicer to handle this more gracefully by returning an error
to the caller.  An abort isn't much better than a segmentation fault
if this can be triggered by user input.

-- 
Alan Modra
Australia Development Lab, IBM


More information about the Binutils mailing list