cvs commit: src/usr.bin/elfdump elfdump.c
Marcel Moolenaar
marcel at FreeBSD.org
Fri Aug 8 18:55:39 PDT 2003
marcel 2003/08/08 18:55:38 PDT
FreeBSD src repository
Modified files:
usr.bin/elfdump elfdump.c
Log:
Fix sign-extension bug for 32 and 64-bit values. For 64-bit values
this involves the sign-extension of the high and low "word". Both
of which are 32-bit. The bug is especially harmful on ia64, where
0x9fffffffe0000000 is a common address (base of register stack).
This was invariably displayed as 0xffffffffe0000000.
The sign-extension is fixed by using {b|l}e{16|32|64}dec() where
applicable. Since elfdump(1) is not a bootstrap tool, dependency
on these functions is not a problem.
Revision Changes Path
1.9 +27 -39 src/usr.bin/elfdump/elfdump.c
More information about the cvs-src
mailing list