[PATCH] Fix PR gdb/20948: --write option to GDB causes segmentation fault
Jozef Lawrynowicz
jozef.l@mittosystems.com
Thu Sep 13 10:55:00 GMT 2018
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-PR-gdb-20948-write-option-to-GDB-causes-segmenta.patch
Type: text/x-patch
Size: 3207 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20180913/2b68272d/attachment.bin>
More information about the Binutils
mailing list