aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.c
diff options
context:
space:
mode:
authorAlan Modra2015-11-08 09:29:00 -0800
committerPaul Eggert2015-11-08 10:00:59 -0800
commit3ff9fc0e8d738be5004c65c3be314af9aca68148 (patch)
tree670d5f6de1d84737c944ba7c0c7f3f4e4395116c /src/coding.c
parent190b968f189cb7d06223bb39045ec9055df67f68 (diff)
downloademacs-3ff9fc0e8d738be5004c65c3be314af9aca68148.tar.gz
emacs-3ff9fc0e8d738be5004c65c3be314af9aca68148.zip
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.
Diffstat (limited to 'src/coding.c')
0 files changed, 0 insertions, 0 deletions