]> git.eshelyaron.com Git - emacs.git/commit
ELF unexec: _OBJC_ symbols in bss sections
authorAlan Modra <amodra@gmail.com>
Sun, 8 Nov 2015 17:29:00 +0000 (09:29 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 8 Nov 2015 18:00:59 +0000 (10:00 -0800)
commit3ff9fc0e8d738be5004c65c3be314af9aca68148
tree670d5f6de1d84737c944ba7c0c7f3f4e4395116c
parent190b968f189cb7d06223bb39045ec9055df67f68
ELF unexec: _OBJC_ symbols in bss sections

This code assumed that there was only one bss section.  Rather than
checking for a particular index, check the section type.  Also, handle
the possibility that the section was SHT_NOBITS originally and is
unchanged, in which case no clearing is needed (and sh_offset isn't
necessarily valid, which can lead to a wild memset).

* unexelf.c (unexec): Properly handle _OBJC_ symbols in bss sections.
src/unexelf.c