readelf.c won't compile with HP-UX 11.00's cc

Alexandre Oliva aoliva@redhat.com
Tue Feb 27 17:03:00 GMT 2001


Mainline readelf.c contains invalid C code.  The result of a type cast
isn't an lvalue, but we pass the result of a cast to GET_DATA_ALLOC as
the `var' argument, that is assigned to.  This compiles with GCC, as
an extension, but some other compilers barf.  This patch fixes it so
that it compiles.  Ok to install?



More information about the Binutils mailing list