* unexelf.c: Don't assume ElfW (Half) fits in int.
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 7 May 2013 20:55:47 +0000 (13:55 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 7 May 2013 20:55:47 +0000 (13:55 -0700)
commitf269bc61c10320cf020e0751e6643fbbb5f059a2
tree11e6fc1d07a35c822778784350fa8a3285e30e0e
parenta261c53eaefb9f2d0a5e9175827b12ddefddbb7f
* unexelf.c: Don't assume ElfW (Half) fits in int.

(entry_address, find_section, unexec): Use ptrdiff_t, not int,
when dealing with ElfW (Half) values, since they can exceed 2**31
on 64-bit OpenBSD hosts.  Problem reported privately by Han Boetes.
(entry_address): Omit unused NUM arg.  All uses changed.
src/ChangeLog
src/unexelf.c