28 Commits

Author SHA1 Message Date
e5a32b1725 * elf/readelf.c (process_dynamic_segment): Print DT_* value only if
do_dynamic.
(do_histogram): New variable.
(options): New long option histogram.  Set do_histogram if this
option is used.
(usage): Document --histogram.
(parse_args): Handle 0 return value from getopt_long.  Enable
do_histogram for -a.
(process_symbol_table): Read hash table also if only do_histogram.
Add code to print hash table histogram.
1998-09-02 21:55:37 +00:00
7c71c3ea98 (process_syminfo): Print names of files symbols are bound to, not the index. 1998-08-26 00:17:28 +00:00
fdf959ddcb (process_dynamic_segment): Read syminfo section if available.
(process_syminfo): New function.  Print syminfo information.
(process_file): Call process_syminfo and free syminfo data at the end.
1998-08-25 23:47:11 +00:00
be5b92f932 (dump_relocations): EM_ARM uses rela relocs. 1998-07-31 15:08:44 +00:00
c0304ac51d Fri Jul 24 16:28:57 1998 Jeff Holcomb <jeffh@cygnus.com>
* readelf.c (get_dynamic_type): Remove empty default from switch
	statement.
1998-07-24 23:58:30 +00:00
9af55dcfdf remove d30v sanitization 1998-07-24 04:27:42 +00:00
3b9f0cb69b Consistantly use elf_ prefix for *_reloc_type functions. 1998-07-23 00:08:44 +00:00
f97d05dc1b Get relocation numbers from header files, rather than using built in
functions.
1998-07-22 23:32:58 +00:00
133a451e9f Remove definition of functions to return relocation symbol strings.
They now get implicitly defined when include the system specific ELF
header.
1998-07-22 22:00:20 +00:00
842dbd0d61 Before include system specific ELF header define
START_RELOC_NUMBERS, RELOC_NUMBER, and END_RELOC_NUMBERS.  For now
used for ppc, mips, and mn10300.
1998-07-22 20:55:31 +00:00
f5d660b679 Ooops - added gettext'isation missed out from previous delta 1998-07-22 17:29:11 +00:00
e293b0962e Display number of unrecognised relocations. 1998-07-22 17:28:17 +00:00
5892b09993 Use symbolic names of relocation entries for the various
architectures.  Correct more layout details.  Print names of MIPS
specific section types.  Print Alpha, ARM, and MIPS relocation type
names.
1998-07-21 20:15:58 +00:00
c546f3a091 process_symbol_table): Fix little alignment problem in printed table header. 1998-07-20 14:49:03 +00:00
6c4b8d0f36 Correct reading of .dynamic section.
(dynamic_section): Now a global variable.
(process_mips_fpe_exception, process_mips_specific, process_arch_specific):
New functions.
(get_file_header): Call process_arch_specific.
1998-07-20 14:18:35 +00:00
5821de310f Add support for processor specific information on MIPS. 1998-07-19 23:31:57 +00:00
19808d3f79 Fix several versioning related bugs. Produce nicer output. 1998-07-19 22:18:24 +00:00
d76c93e68c * readelf.c (byte_get): Use PARAMS in prototype.
(error): Make it work with non-ANSI compilers.
        (warn): Likewise.
        (get_ver_flags): Don't use an ANSI prototype in the definition.
1998-07-08 03:55:07 +00:00
9eaac302dc Minor formatting improvements. 1998-07-01 23:30:34 +00:00
cb436f39aa Improved portability of readelf 1998-06-30 00:03:05 +00:00
4775a8a5a9 * Attempt to make readelf.c compile under IRIX6 cc by inserting
non-functional "break;" in switch statement.
1998-06-29 07:40:02 +00:00
ebb6416960 Rewrite of readelf to use fopen/fread rather than mmap. 1998-06-23 18:12:44 +00:00
59bbaa1950 * readelf.c: Include bfd.h and bucomm.h before system header
files.
	(parse_args): Change type of c from char to int.
1998-06-22 22:28:49 +00:00
2f300fe69e add d30v sanitization to readelf 1998-06-13 15:15:13 +00:00
1e3d6cc401 Make sure .gcc_except_table fits in the section header table 1998-06-12 21:00:00 +00:00
a09db9ba57 Add PowerPC support to readelf; Print machine specific flags; Print endianess; Make widening more portable 1998-06-12 20:50:03 +00:00
c18f8aef72 Fix sunOS build of readelf.
Fixed -Wall warnigs when built under Linux.
1998-06-12 00:56:39 +00:00
764668738f Add 'readelf' to binutils. 1998-06-11 21:51:56 +00:00