commit | c35b4e8cee990d0d1c33b631912333e623a37477 | [log] [tgz] |
---|---|---|
author | H.J. Lu <hjl.tools@gmail.com> | Fri Sep 15 12:18:05 2017 -0700 |
committer | H.J. Lu <hjl.tools@gmail.com> | Fri Sep 15 12:26:43 2017 -0700 |
tree | 1907014a7e277db93992f57fee6ff9a478d6e8fb | |
parent | 79254a5260cf49887b4017700bd75b27f483b322 [diff] |
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.