Skip to content
Commit c35b4e8c authored by H.J. Lu's avatar H.J. Lu
Browse files

Remove invalid .dynamic section with --only-keep-debug

Remove invalid .dynamic section with --only-keep-debug.

bfd/

	PR binutils/22101
	* elf.c (rewrite_elf_program_header): Remove the segment from
	output if all sections in input have been removed.

binutils/x

	PR binutils/22101
	* objcopy.c (strip_main): Also remove invalid .dynamic section
	with --only-keep-debug.
	(copy_main): Likewise.
parent 79254a52
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment