This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Patch for readelf again
- To: "Chris G. Demetriou" <cgd at sibyte dot com>
- Subject: Patch for readelf again
- From: "H . J . Lu" <hjl at lucon dot org>
- Date: Fri, 30 Mar 2001 11:06:50 -0800
- Cc: binutils at sources dot redhat dot com, nickc at redhat dot com
- References: <20010328144344.A22625@lucon.org> <200103282312.SAA01149@ives.lkg.dec.com> <20010328154833.A23617@lucon.org> <mailpost.985824467.31797@postal.sibyte.com> <yov5y9tnm8ll.fsf@highland.sibyte.com>
On Fri, Mar 30, 2001 at 10:09:58AM -0800, Chris G. Demetriou wrote:
> hjl@lucon.org ("H . J . Lu") writes:
> > 2001-03-28 H.J. Lu <hjl@gnu.org>
> >
> > * readelf.c (process_unwind): Only do unwind sections for
> > IA64.
> >
Here is a patch for readelf. Sorry for that.
Thanks.
H.J.
---
2001-03-30 H.J. Lu <hjl@gnu.org>
* readelf.c (process_unwind): Just return if do_unwind is 0.
Index: readelf.c
===================================================================
RCS file: /work/cvs/gnu/binutils/binutils/readelf.c,v
retrieving revision 1.53
diff -u -p -r1.53 readelf.c
--- readelf.c 2001/03/30 01:49:19 1.53
+++ readelf.c 2001/03/30 19:00:28
@@ -3411,6 +3411,9 @@ process_unwind (file)
unsigned long i, addr_size;
struct unw_aux_info aux;
+ if (!do_unwind)
+ return 1;
+
if (elf_header.e_machine != EM_IA_64)
{
printf (_("\nThere are no unwind sections in this file.\n"));
@@ -3420,9 +3423,6 @@ process_unwind (file)
memset (& aux, 0, sizeof (aux));
addr_size = is_32bit_elf ? 4 : 8;
-
- if (!do_unwind)
- return 1;
for (i = 0, sec = section_headers; i < elf_header.e_shnum; ++i, ++sec)
{