Alan Modra
2f11c26109
* readelf.c (print_vma): Print 8 digits of low hex value.
2001-09-25 12:49:38 +00:00
H.J. Lu
3882b01078
Locale changes from Bruno Haible <haible@clisp.cons.org>.
2001-09-19 05:33:36 +00:00
Alan Modra
e59b4dfbd2
* ar.c (print_contents): Cast args of bfd_seek to the right types.
...
Replace bfd_read call with call to bfd_bread.
(extract_file): Likewise.
* objdump.c (dump_section_header): Cast section->filepos to
unsigned long to suit printf format string.
* readelf.c (process_section_headers): Similarly for sh_offset.
(process_unwind): Likewise.
2001-09-18 10:05:55 +00:00
Alexandre Oliva
2b0337b0a2
* readelf.c (guess_is_rela, dump_relocations, get_machine_name,
...
get_machine_flags): Added EM_M32R, EM_D10V, EM_V850, EM_D30V,
EM_MN10200, EM_MN10300, EM_FR30, EM_AVR_OLD and EM_PJ_OLD.
Removed EM_CYGNUS_ARC.
2001-09-12 23:53:45 +00:00
Jeff Law
b8720f9d57
* readelf.c: Include elf/h8 for H8 series definitions.
...
(guess_is_rela): H8 series if RELA.
(dump_relocations): Handle H8 series relocations.
* testsuite/binutils/all/readelf.exp: Expect readelf -wi to
fail for the H8 series.
2001-09-05 02:26:04 +00:00
Eric Christopher
0823fbcae4
2001-08-31 Eric Christopher <echristo@redhat.com>
...
Jason Eckhardt <jle@redhat.com>
* mips-dis.c: Add support for bfd_mach_mipsisa32 and
bfd_mach_mipsisa64. Remove bfd_mach_mips32, bfd_mach_mips32_4k,
bfd_mach_mips64.
2001-08-31 21:15:00 +00:00
Alan Modra
25a1ff5b2d
* readelf.c (dump_relocations): Recognise EM_PPC64.
2001-08-27 10:33:19 +00:00
Thiemo Seufer
a5d22d2ad5
* readelf.c (get_machine_flags): Add detection of EF_MIPS_32BITMODE.
2001-08-26 13:04:34 +00:00
Thiemo Seufer
d1bdd336d4
* readelf.c (get_machine_flags): Add detection of EF_MIPS_UCODE.
2001-08-22 18:42:07 +00:00
H.J. Lu
410f7a1290
2001-08-21 H.J. Lu <hjl@gnu.org>
...
* readelf.c (dump_relocations): Support ELF64 on 32bit hosts.
(display_debug_info): Cast for 64bit hosts.
(display_debug_frames): Likewise.
(process_mips_specific): Likewise.
2001-08-21 15:08:38 +00:00
Alan Modra
2863d58a18
* readelf.c: Add missing prototypes.
...
* objdump.c: Likewise. Format existing prototypes.
2001-08-09 14:46:50 +00:00
Alexandre Oliva
c0e047e0e5
* readelf.c (display_debug_info): Add to abbrev_offset the addend
...
of any RELA relocation for the abbrev_offset memory location that
refers to the .debug_abbrev section symbol.
2001-08-08 11:17:46 +00:00
H.J. Lu
ff78d6d660
2001-08-07 H.J. Lu <hjl@gnu.org>
...
* readelf.c (process_file): Return 0 if OK, otherwise return 1.
(main): Return process_file ().
2001-08-07 20:15:00 +00:00
Nick Clifton
e0c60db230
Display the contents of a .debug.macinfo section
2001-07-05 07:49:05 +00:00
Nick Clifton
b811889fc5
Support DWARF 2.1 tags, encodings, languages.
2001-07-01 08:53:15 +00:00
Nick Clifton
12ab83a9ae
Add DWARF 2.1 attributes
2001-06-29 14:17:31 +00:00
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