Patch for readelf again
H . J . Lu
hjl@lucon.org
Fri Mar 30 11:06:00 GMT 2001
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)
{
More information about the Binutils
mailing list