Date: Fri, 8 Aug 2003 18:55:38 -0700 (PDT) From: Marcel Moolenaar <marcel@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.bin/elfdump elfdump.c Message-ID: <200308090155.h791tc7P060069@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200308090155.h791tc7P060069>