This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: i370 readelf support
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: binutils at sources dot redhat dot com
- Cc: ross dot alexander at uk dot neceur dot com
- Date: Thu, 15 Aug 2002 21:57:30 +0930
- Subject: Re: i370 readelf support
- References: <20020815214837.M20056@bubble.sa.bigpond.net.au>
On Thu, Aug 15, 2002 at 09:48:37PM +0930, Alan Modra wrote:
> First we have to get ourselves an i370_reloc_type function.
Then we can use it. Also fixes lack of '\n' in a couple of places.
* readelf.c: Include elf/i370.h.
(dump_relocations): Handle EM_S370.
(dynamic_segment_parisc_val): Print \n.
(process_dynamic_segment <DT_BIND_NOW>): Here too.
Index: readelf.c
===================================================================
RCS file: /cvs/src/src/binutils/readelf.c,v
retrieving revision 1.168
diff -u -p -r1.168 readelf.c
--- readelf.c 30 Jul 2002 14:33:38 -0000 1.168
+++ readelf.c 15 Aug 2002 12:07:34 -0000
@@ -62,6 +62,7 @@
#include "elf/h8.h"
#include "elf/hppa.h"
#include "elf/i386.h"
+#include "elf/i370.h"
#include "elf/i860.h"
#include "elf/i960.h"
#include "elf/ia64.h"
@@ -1118,6 +1119,10 @@ dump_relocations (file, rel_offset, rel_
rtype = elf_x86_64_reloc_type (type);
break;
+ case EM_S370:
+ rtype = i370_reloc_type (type);
+ break;
+
case EM_S390_OLD:
case EM_S390:
rtype = elf_s390_reloc_type (type);
@@ -4294,6 +4299,7 @@ dynamic_segment_parisc_val (entry)
print_vma (entry->d_un.d_ptr, PREFIX_HEX);
break;
}
+ putchar ('\n');
}
static int
@@ -4906,6 +4912,8 @@ process_dynamic_segment (file)
case DT_BIND_NOW:
/* The value of this entry is ignored. */
+ if (do_dynamic)
+ putchar ('\n');
break;
case DT_GNU_PRELINKED:
--
Alan Modra
IBM OzLabs - Linux Technology Centre