The --permissive command line option is applied when writing the binary
being stripped but is not applied when writing its separate debug file.
Change this so that --permissive applies to writing the debug file as well.
Signed-off-by: Aaron Merey <amerey@redhat.com>
if (debug_fname != NULL && removing_sections)
{
/* Finally write the file. */
+ if (permissive)
+ elf_flagelf (debugelf, ELF_C_SET, ELF_F_PERMISSIVE);
if (unlikely (elf_update (debugelf, ELF_C_WRITE) == -1))
{
error (0, 0, _("while writing '%s': %s"),