Alan Modra
a6e9f9dfd0
* readelf.c (GET_DATA_ALLOC): Remove.
...
(GET_DATA): Remove.
(get_data): New function combining above macros, with an extra
test for zero size.
Use get_data, and catch error return throughout file.
2001-06-28 13:58:36 +00:00
Alan Modra
af3fc3bcb3
* readelf.c (dump_relocations): Print "bad symbol index" if
...
symtab == NULL with non-zero symtab_index.
(process_relocs): Don't bomb if reloc section has no symsec.
2001-06-25 03:30:26 +00:00
Nick Clifton
c45021f2d2
Remove auot generated man pages
2001-06-19 11:57:29 +00:00
Andreas Jaeger
7036c0e167
* readelf.c (display_debug_frames): Fix warnings: Remove unused
...
variables, fix format strings.
2001-05-28 15:41:34 +00:00
Richard Henderson
31b6fca668
* readelf.c (do_debug_frames_interp): New.
...
(byte_get_little_endian): If BFD64, always read entire 8-byte fields.
(byte_get_big_endian): Likewise.
(parse_args) ['F']: Set do_debug_frames_interp.
(Frame_Chunk): Make data_factor signed, add fde_encoding.
(frame_display_row): Don't trunc pc_begin to int.
(size_of_encoded_value): New.
(display_debug_frames): Handle 64-bit targets. Print raw data
unless do_debug_frames_interp.
(debug_displays): Remove duplicate .debug_frame.
2001-05-16 16:20:26 +00:00
Nick Clifton
4fe8559101
Remove definition of EM_MIPS_RS4_BE. The constant was never in active use
...
and is used otherwise by the ABI.
2001-05-15 12:24:29 +00:00
Jakub Jelinek
579f31ac74
* elfxx-ia64.c (is_unwind_section_name): Consider linkonce unwind
...
sections as well.
(elfNN_ia64_final_write_processing): Map .gnu.linkonce.ia64unw.FOO
to .gnu.linkonce.t.FOO text section.
* readelf.c (process_unwind): Print all unwind sections, not just
one.
* config/tc-ia64.c (special_linkonce_name): New.
(make_unw_section): Map .gnu.linkonce.t.FOO text section into
.gnu.linkonce.ia64unw{,i}.FOO.
(ia64_elf_section_type): Handle .gnu.linkonce.ia64unw{,i}.FOO.
(dot_endp): Add comment about it.
* elf/ia64.h (ELF_STRING_ia64_unwind_once): Define.
(ELF_STRING_ia64_unwind_info_once): Define.
* emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
.gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
output sections.
* emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
2001-05-11 12:36:47 +00:00
Alan Modra
78f4a3f728
* readelf.c (process_unwind): Remove const specifier.
2001-05-07 09:17:34 +00:00
Hans-Peter Nilsson
ff94ebf2c8
* readelf.c (display_debug_lines): Fix typo for "Prologue".
2001-04-05 17:44:15 +00:00
H.J. Lu
e58d53afc0
2001-03-30 H.J. Lu <hjl@gnu.org>
...
* readelf.c (process_unwind): Just return if do_unwind is 0.
2001-03-31 06:36:17 +00:00
H.J. Lu
f1467e3315
2001-03-29 H.J. Lu <hjl@gnu.org>
...
* readelf.c (process_unwind): Only do unwind sections for
IA64.
2001-03-30 01:26:43 +00:00
Nick Clifton
8c2bc6877d
Fix typos in ChangeLogs and update copyright notices
2001-03-13 06:43:59 +00:00
Nick Clifton
b7498e0ef0
Handle EM_S390_OLD.
2001-03-12 23:35:23 +00:00
Nick Clifton
a59e3bd746
Remove non-K&R compliant LHS type cast in call to GET_DATA_ALLOC macro.
2001-02-28 19:40:12 +00:00
Phil Blundell
a5bcd848ff
2001-02-28 Philip Blundell <pb@futuretv.com>
...
* readelf.c (decode_ARM_machine_flags): Explicitly mention which
ABI is in use; remove ambiguity between the "unknown" EABI and
unrecognised ABIs. Handle version 2 ARM EABI. Update uses of
renamed EF_xx constants.
2001-02-28 10:15:57 +00:00
Michael Sokolov
ecd0338944
* readelf.c (struct unw_aux_info): Remove const from the info member.
...
(process_unwind): Don't type-cast the third argument to the
GET_DATA_ALLOC macro.
2001-02-11 23:11:39 +00:00
Nick Clifton
88ec60c7e0
fix seg fault in reloc reading code
2001-02-11 22:14:01 +00:00
Nick Clifton
f5e2196691
Document new --unwind option to readelf.
2001-02-10 22:20:55 +00:00
Nick Clifton
a85d7ed0f0
Add s390 support
2001-02-10 00:58:38 +00:00
Nick Clifton
4d6ed7c8ce
Add -u option toi readelf to display unwind info.
...
Add support to display unwind info for IA64 binaries.
2001-02-07 19:41:03 +00:00
Jakub Jelinek
00d93f3435
* readelf.c (process_version_sections): Check if VERDEF or VERNEED
...
sections are present before using them. Remove code duplication.
(process_symbol_table): Check if VERDEF or VERNEED sections are
present before using them.
2001-01-23 13:49:37 +00:00
Nick Clifton
d40ac9bde2
Prevent seg fault with corrupt section name indicies
2001-01-16 23:22:44 +00:00
Nick Clifton
bcedfee6be
Add EM_X86_64.
2000-12-12 20:58:46 +00:00
Nick Clifton
584da044d9
Fix formatting.
2000-12-12 19:36:32 +00:00
Andrew Haley
a98cc2b2fd
2000-12-07 Andrew Haley <aph@redhat.com>
...
* readelf.c (display_debug_frames): Only display columns that are
referenced by the frame debug info.
2000-12-08 17:25:47 +00:00
Jason Merrill
09fd7e3854
* readelf.c (process_section_headers): Handle linkonce.wi sections.
...
(display_debug_section): Likewise.
(display_debug_info): Display CU header before bailing.
2000-12-04 16:34:44 +00:00
Nick Clifton
c6c98b3833
Add MIPS SB1 machine
2000-12-02 01:10:33 +00:00
Nick Clifton
84ea6cf2c5
Add MIPS V and MIPS 64 machine numbers
2000-12-02 00:55:22 +00:00
Nick Clifton
e7af610e14
Add MIPS32 as a seperate MIPS architecture
2000-12-01 21:35:38 +00:00
DJ Delorie
75066968bd
* readelf.c (frame_display_row): Output 's' for DW_CFA_same_value.
2000-11-30 15:35:54 +00:00
DJ Delorie
b3a10c9a0b
oops, forgot a semicolon
2000-11-27 21:10:31 +00:00
DJ Delorie
c47d488e51
* readelf.c (usage): Add -wf (--debug-dump=frames) option.
...
(parse_args): Support -wf option.
(process_section_headers): Ditto.
(debug_displays): Ditto.
(display_debug_frames): New, dump *_frame sections.
(frame_need_space): Support for above.
(frame_display_row): Ditto.
* binutils.texi: Document it.
2000-11-27 21:07:47 +00:00
Nick Clifton
93ebe586cd
Add new machien types and section flags
2000-11-22 23:49:39 +00:00
H.J. Lu
bd9805457d
2000-11-20 H.J. Lu <hjl@gnu.org>
...
* readelf.c (get_osabi_name): Change ELFOSABI_MONTEREY to
ELFOSABI_AIX.
2000-11-20 23:47:41 +00:00
Richard Henderson
b612ab9c43
* readelf.c (display_debug_lines): Adjust last change to
...
use sizeof (external->li_length).
2000-11-19 20:57:42 +00:00
Richard Henderson
512d22f487
* readelf.c (display_debug_lines): Fix section length check
...
and end_of_sequence computation.
2000-11-17 08:28:59 +00:00
Nick Clifton
76da6bbe3e
Remove extraneous whitepaces
2000-11-05 19:18:34 +00:00
Nick Clifton
156c2f8bf7
Add support for the MIPS32
2000-09-14 01:47:38 +00:00
Nick Clifton
3f215a1093
Catch and warn about attempts to display debug information for version 1 aranges.
2000-08-17 23:00:38 +00:00
Jason Eckhardt
535c37ffa8
2000-08-05 Jason Eckhardt <jle@cygnus.com>
...
* readelf.c (elf/i860.h): Include.
(dump_relocations): Add recognition of i860 architecture.
(guess_is_rela): Add recognition of i860 architecture.
2000-08-08 00:47:04 +00:00
Hans-Peter Nilsson
1b61cf9230
* MAINTAINERS: Add self as CRIS port maintainer.
...
* readelf.c: Include elf/cris.h.
(guess_is_rela): Handle EM_CRIS.
(dump_relocations): Ditto.
(get_machine_name): Ditto.
* Makefile.am: Rebuild dependencies.
* Makefile.in: Regenerate.
* po/binutils.pot: Regenerate.
2000-07-20 17:28:56 +00:00
H.J. Lu
019148e439
2000-07-19 H.J. Lu <hjl@gnu.org>
...
* readelf.c (get_dynamic_type): Change "AUXILARY" to
"AUXILIARY".
(process_dynamic_segment): Print out strings for DT_CONFIG,
DT_DEPAUDIT, DT_AUDIT and DT_RUNPATH.
2000-07-20 02:45:36 +00:00
H.J. Lu
f7db6139df
2000-07-19 H.J. Lu <hjl@gnu.org>
...
* readelf.c (process_dynamic_segment): Change DF_1_NODEPLIB
to DF_1_NODEFLIB.
2000-07-19 18:45:46 +00:00
H.J. Lu
05107a46ed
2000-07-19 H.J. Lu <hjl@gnu.org>
...
* readelf.c (get_dynamic_type): Fix DT_CHECKSUM.
2000-07-19 18:24:32 +00:00
H.J. Lu
dcefbbbda0
2000-07-19 H.J. Lu <hjl@gnu.org>
...
* readelf.c (get_dynamic_type): Change DT_FEATURE_1 to
DT_FEATURE.
(process_dynamic_segment): Likewise.
* readelf.c (get_dynamic_type): Handle DT_CONFIG, DT_DEPAUDIT,
DT_AUDIT, DT_PLTPAD, DT_MOVETAB and DT_CHECKSUM.
(process_dynamic_segment): Handle DTF_1_CONFEXP, DF_1_NODEPLIB,
DF_1_NODUMP and DF_1_CONLFAT.
2000-07-19 18:03:18 +00:00
Alan Modra
3c9f43b196
Warning fixes.
2000-07-10 14:51:04 +00:00
Nick Clifton
60bcf0fa8c
Applied Stephane Carrez <Stephane.Carrez@worldnet.fr> patches to add support
...
for m68hc11 and m68hc12 processors.
2000-06-19 01:22:44 +00:00
H.J. Lu
146243a7e0
2000-05-02 H.J. Lu <hjl@gnu.org>
...
* readelf.c (get_osabi_name): Handle ELFOSABI_NONE instead of
ELFOSABI_SYSV. Also handle ELFOSABI_NETBSD, ELFOSABI_HURD,
ELFOSABI_SOLARIS, ELFOSABI_MONTEREY, ELFOSABI_IRIX,
ELFOSABI_FREEBSD, ELFOSABI_TRU64, ELFOSABI_MODESTO
and ELFOSABI_OPENBSD.
2000-05-02 17:54:32 +00:00
Denis Chertykov
dff1420082
* readelf.c (guess_is_rela): AVR uses RELA relocations.
...
(get_machine_name): machine name for EM_AVR added.
2000-05-01 06:53:41 +00:00
Jim Wilson
800eeca487
IA-64 ELF support.
2000-04-21 20:22:24 +00:00