Jozef Lawrynowicz
2018-09-13 10:55:16 UTC
When opening a BFD for update, as gdb --write does, modifications to
anything but the contents of sections is restricted.
Do not try to write back any ELF headers in this case.
Successfully tested with no regressions on x86_64-pc-linux-gnu with
the binutils, gas, ld and gdb testsuites.
The PR is assigned to GDB, but the fix is to BFD, hence the
submission to binutils mailing list instead of GDB.
anything but the contents of sections is restricted.
Do not try to write back any ELF headers in this case.
Successfully tested with no regressions on x86_64-pc-linux-gnu with
the binutils, gas, ld and gdb testsuites.
The PR is assigned to GDB, but the fix is to BFD, hence the
submission to binutils mailing list instead of GDB.