This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: PATCH: Fix read_leb128 in readelf for 64bit host
- From: Daniel Jacobowitz <drow at false dot org>
- To: Dave Korn <dave dot korn at artimi dot com>
- Cc: "'H. J. Lu'" <hjl at lucon dot org>, binutils at sources dot redhat dot com,'GDB' <gdb-patches at sources dot redhat dot com>
- Date: Tue, 28 Dec 2004 09:56:50 -0500
- Subject: Re: PATCH: Fix read_leb128 in readelf for 64bit host
- References: <20041227190130.GA21178@lucon.org> <NUTMEGNE6f17ro43pwu00000a9c@NUTMEG.CAM.ARTIMI.COM>
On Tue, Dec 28, 2004 at 01:13:14PM -0000, Dave Korn wrote:
> IIRC
You don't :-) C99 6.5.7#3...
> the C spec says shift amounts >=32 are undefined behaviour, even in the
> presence of larger integer types.
--
Daniel Jacobowitz