]> code.delx.au - gnu-emacs/commit
ELF unexec: Merge Alpha and MIPS COFF debug handling
authorAlan Modra <amodra@gmail.com>
Sun, 8 Nov 2015 17:28:59 +0000 (09:28 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 8 Nov 2015 18:00:59 +0000 (10:00 -0800)
commit47c6e3035b8182c6436de4673473de7824ad59f1
tree55e31b91d0e3ab301a1db8bc37c201dc309694a6
parent856f4eaba8a76953e0bbcfc7ebb0ca4f2e3cf351
ELF unexec: Merge Alpha and MIPS COFF debug handling

* unexelf.c (unexec): Merge Alpha and MIPS COFF debug handling.
Don't find .mdebug section index, find the section in the loop.
Allow for unlikely possibility that .mdebug is located at sh_offset
before bss segment, by calculating move from difference in
sh_offset rather than just assuming new_data2_size.  Simplify
cbLineOffset handling.
src/unexelf.c