aboutsummaryrefslogtreecommitdiff
path: root/binutils/readelf.c
AgeCommit message (Collapse)AuthorFilesLines
2004-01-292004-01-21 Roland McGrath <roland@redhat.com>Roland McGrath1-7/+8
* readelf.c (get_note_type): Match NT_AUXV.
2004-01-07Fix initialisation of debug_line_pointer_sizes array so that it is done as ↵Nick Clifton1-172/+154
needed
2003-12-29Update pointer_size patchNick Clifton1-51/+119
2003-12-19Add support for m32r-linux target, including a RELA ABI and PIC.Nick Clifton1-1/+1
2003-11-26Add a comment describing the difference between readelf and objdump.Nick Clifton1-1/+19
2003-11-07Use consistent error messages for missing files.Nick Clifton1-2/+12
Detect directories where an ordinary file is expected.
2003-10-30Do not dump the contents of SHT_NOBITS sections - they have no file spaceNick Clifton1-1/+1
assigned to their contents.
2003-10-27 * readelf.c (dump_section): Don't display DEL characters.Alan Modra1-1/+1
2003-10-27 * ChangeLog: Fix typos.Kazu Hirata1-6/+6
* ChangeLog-9197: Likewise. * ChangeLog-9899: Likewise. * NEWS: Likewise. * ar.c: Fix comment typos. * arsup.c: Likewise. * coffgrok.c: Likewise. * debug.c: Likewise. * debug.h: Likewise. * dlltool.c: Likewise. * ieee.c: Likewise. * nm.c: Likewise. * objdump.c: Likewise. * prdbg.c: Likewise. * readelf.c: Likewise. * resrc.c: Likewise. * sysinfo.y: Likewise. * windres.c: Likewise.
2003-09-30[ bfd/ChangeLog ]Chris Demetriou1-0/+1
2003-09-30 Chris Demetriou <cgd@broadcom.com> * archures.c (bfd_mach_mipsisa64r2): New define. * bfd-in2.h: Regenerate. * aoutx.h (NAME(aout,machine_type)): Handle bfd_mach_mipsisa64r2. * cpu-mips.c (I_mipsisa64r2): New enum value. (arch_info_struct): Add entry for I_mipsisa64r2. * elfxx-mips.c (_bfd_elf_mips_mach) (_bfd_mips_elf_print_private_bfd_data): Handle E_MIPS_ARCH_64R2. (mips_set_isa_flags): Add bfd_mach_mipsisa64r2 case. (mips_mach_extensions): Add entry for bfd_mach_mipsisa64r2. [ binutils/ChangeLog ] 2003-09-30 Chris Demetriou <cgd@broadcom.com> * readelf.c (get_machine_flags): Handle E_MIPS_ARCH_64R2. [ gas/Changelog ] 2003-09-30 Chris Demetriou <cgd@broadcom.com> * configure.in (mipsisa64r2, mipsisa64r2el, mipsisa64r2*): New CPUs. * configure: Regenerate. * config/tc-mips.c (imm2_expr): New variable. (md_assemble, mips16_ip): Initialize imm2_expr. (ISA_HAS_64BIT_REGS, ISA_HAS_DROR, ISA_HAS_ROR): Add ISA_MIPS64R2. (macro_build): Handle +A, +B, +C, +E, +F, +G, and +H format operands. (macro): Handle M_DEXT and M_DINS. (validate_mips_insn): Handle +E, +F, +G, +H, and +I format operands. (mips_ip): Likewise. (OPTION_MIPS64R2): New define. (md_longopts): New entry for -mips64r2 (OPTION_MIPS64R2). OPTION_ASE_BASE): Increase to compensate for OPTION_MIPS64R2. (md_parse_option): Handle OPTION_MIPS64R2. (s_mipsset): Handle setting "mips64r2" ISA. (mips_cpu_info_table): Add mips64r2. (md_show_usage): Document -mips64r2 option. * doc/as.texinfo: Docuemnt -mips64r2 option. * doc/c-mips.texi: Likewise. [ gas/testsuite/ChangeLog ] 2003-09-30 Chris Demetriou <cgd@broadcom.com> * gas/mips/cp0-names-mips64r2.d: New file. * gas/mips/cp0sel-names-mips64r2.d: New file. * gas/mips/elf_arch_mips64r2.d: New file. * gas/mips/hwr-names-mips64r2.d: New file. * gas/mips/mips32r2-ill-fp64.l: New file. * gas/mips/mips32r2-ill-fp64.s: New file. * gas/mips/mips64r2-ill.l: New file. * gas/mips/mips64r2-ill.s: New file. * gas/mips/mips64r2.d: New file. * gas/mips/mips64r2.s: New file. * gas/mips/mips.exp: Define "mips64r2" arch, and run new tests. [ include/elf/ChangeLog ] 2003-09-30 Chris Demetriou <cgd@broadcom.com> * mips.h (E_MIPS_ARCH_64R2): New define. [ include/opcode/ChangeLog ] 2003-09-30 Chris Demetriou <cgd@broadcom.com> * mips.h: Document +E, +F, +G, +H, and +I operand types. Update documentation of I, +B and +C operand types. (INSN_ISA64R2, ISA_MIPS64R2, CPU_MIPS64R2): New defines. (M_DEXT, M_DINS): New enum values. [ ld/ChangeLog ] 2003-09-30 Chris Demetriou <cgd@broadcom.com> * ldmain.c (get_emulation): Ignore "-mips64r2". [ ld/testsuite/ChangeLog ] 2003-09-30 Chris Demetriou <cgd@broadcom.com> * ld-mips-elf/mips-elf-flags.exp: Add tests for combinations with MIPS64r2. [ opcodes/ChangeLog ] 2003-09-30 Chris Demetriou <cgd@broadcom.com> * mips-dis.c (mips_arch_choices): Add entry for "mips64r2" (print_insn_args): Add handing for +E, +F, +G, and +H. * mips-opc.c (I65): New define for MIPS64r2. (mips_builtin_opcodes): Add "dext", "dextm", "dextu", "dins", "dinsm", "dinsu", "drotl", "drotr", "drotr32", "drotrv", "dsbh", and "dshd" for MIPS64r2. Adjust "dror", "dror32", and "drorv" to be supported on MIPS64r2.
2003-09-302003-09-29 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu1-1/+9
* readelf.c (dump_relocations): Support SHN_IA_64_ANSI_COMMON. (get_symbol_index_type): Likewise. testsuites/ 2003-09-29 H.J. Lu <hongjiu.lu@intel.com> * binutils-all/readelf.exp: Use is_elf_format. * binutils-all/readelf.h: Support IA64/ILP32. * binutils-all/readelf.s: Likewise. * binutils-all/readelf.ss: Likewise. * lib/utils-lib.exp (proc is_elf_format): Copy from ld testsuite. Add ia64-*-hpux*.
2003-09-252003-09-25 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu1-2/+2
* readelf.c (process_version_sections): Indent version names.
2003-09-04Add binutils support for v850e1 processorNick Clifton1-0/+3
2003-08-11 * readelf.c (process_archive): Fix error handling. Remove memoryIan Lance Taylor1-8/+18
leak.
2003-08-11Add ability for readelf to parse archivesNick Clifton1-34/+241
2003-08-05 * objcopy.c: Remove unnecessary prototypes and casts.Alan Modra1-794/+338
* objdump.c: Remove unnecessary casts. * readelf.c: Convert to C90. Remove unnecessary prototypes and casts. (get_osabi_name): Move so we don't need a forward declaration.
2003-07-04* readelf.c (get_data): Print (unsigned) hex values for size and offset inNick Clifton1-3/+6
error messages. (process_section_headers): If the string table could not be allocated, do not continue.
2003-07-01 * readelf.c (dynamic_segment_ia64_val): Print address and newlineJakub Jelinek1-2/+7
for sections by default. Comment fix.
2003-06-26Fix computation of offsets in PT_LOAD sections.Nick Clifton1-101/+123
2003-06-19oops - remove spurious debugging left in previous deltaNick Clifton1-1/+1
2003-06-19When printing DEC_5 values, if the number is bigger than 99999 switch to usingNick Clifton1-11/+37
hexadecimal notation.
2003-06-03binutils/Jakub Jelinek1-0/+1
* readelf.c (get_segment_type): Handle PT_GNU_STACK. bfd/ * elf.c (_bfd_elf_print_private_bfd_data): Handle PT_GNU_STACK. (bfd_section_from_phdr): Likewise. (map_sections_to_segments): Create PT_GNU_STACK segment header. (get_program_header_size): Count with PT_GNU_STACK. * elf-bfd.h (struct elf_obj_tdata): Add stack_flags. * elflink.h (bfd_elfNN_size_dynamic_sections): Set stack_flags. include/ * bfdlink.h (struct bfd_link_info): Add execstack and noexecstack. * elf/common.h (PT_GNU_STACK): Define. ld/ * ldgram.y (phdr_type): Grok PT_GNU_STACK. * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Add -z execstack and -z noexecstack. (gld${EMULATION_NAME}_list_options): Likewise. * scripttempl/elf.sc: If not -r, discard .note.GNU-stack section.
2003-05-31 * readelf.c (byte_get_signed): New.Richard Henderson1-4/+46
(get_encoded_value): New. (display_debug_frames): Use it. Always pre-process opcodes.
2003-05-202003-05-20 Michal Ludvig <mludvig@suse.cz>Michal Ludvig1-1/+1
* readelf.c (display_debug_frames): Print both registers for DW_CFA_register.
2003-05-072003-05-07 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu1-3/+3
* readelf.c (dump_relocations): Enlarge the type field in wide mode by one character.
2003-05-04 * readelf.c (struct Frame_Chunk): Add cfa_exp.Richard Henderson1-13/+62
(frame_display_row): Just print "exp" for cfa or register defined by a location expression. (display_debug_frames): Handle DW_CFA_def_cfa_expression, DW_CFA_expression, DW_CFA_MIPS_advance_loc8.
2003-04-23bfd:Joern Rennecke1-1/+1
* archures.c (enum bfd_architecture): Amend comment to refer to SuperH. * cpu-sh.c: Likewise. * elf32-sh.c: Likewise. * reloc.c (bfd_reloc_code_real): Likewise. * elf32-sh64-com.c: Change comment to refer to SuperH. * elf32-sh64.c: Likewise. * elf64-sh64.c: Likewise. * bfd-in2.h (enum bfd_architecture): Regenerate. binutils: * readelf.c (get_machine_name) <EM_SH>: Amend return value to refer to SuperH. gas: * config/tc-sh.c: Amend comment to refer to SuperH. * config/tc-sh.h: Likewise. (LISTING_HEADER): Amend to refer to SuperH. * config/tc-sh64.c: Change comment to refer to SuperH. * config/tc-sh64.h (LISTING_HEADER): Change to refer to SuperH. * doc/as.texinfo [SH, GENERIC]: Amend / Change to refer to SuperH. * doc/c-sh.texi: Amend to refer to SuperH. Add SuperH architecture documentation references. * doc/c-sh64.texi: Change to refer to SuperH. include/elf: * common.h (EM_SH): Amend comment to refer to SuperH. ld/testsuite: * ld-sh/sh64/crange3-cmpct.rd (Machine): Change to refer to SuperH. * ld-sh/sh64/crange3-media.rd (Machine): Likewise.
2003-04-23Fix "readelf -wi" testNick Clifton1-1/+2
2003-04-22Replace references to Mitsubishi M32R with references to Renesas M32R.Nick Clifton1-1/+1
2003-04-15Replace occurrances of 'Hitachi' with 'Renesas'.Nick Clifton1-5/+5
2003-04-09* readelf.c (display_debug_info): Apply RELA relocations on theAlexandre Oliva1-15/+96
entire section. (byte_put_little_endian, byte_put_big_endian): New functions. (byte_put): New variable. (get_file_header): Initialize it.
2003-04-01Add Xtensa port (omitted from previous delta)Nick Clifton1-0/+10
2003-03-312003-03-31 H.J. Lu <hjl@gnu.org>H.J. Lu1-39/+51
* readelf.c: Include "libiberty.h". (dynamic_relocations): New. (process_relocs): Properly handle dynamic relocation. (process_dynamic_segment): Fill relocation elements in dynamic_info.
2003-03-31Add some initial 64-bit DWARF supportNick Clifton1-79/+208
2003-02-21Add SHT_IA_64_LOPSREG, SHT_IA_64_HIPSREG and SHT_IA_64_PRIORITY_INIT.Nick Clifton1-2/+44
Add code to display these values in readelf.
2003-02-13Add 'H' to getlongopts so that "readelf -H" does not display "unknown option"Nick Clifton1-1/+1
2003-02-10Add support for marking ARM ELF binaries as support the Cirrus EP9312 MaverickNick Clifton1-0/+4
floating point co-processor.
2003-01-28 * readelf.c (dump_relocations): Reorder the r_info field forRichard Sandiford1-4/+15
little-endian mips elf64. Move #ifdef BFD64 to cover the new code.
2003-01-21(display_debug_loc): Skip address base changes.Nick Clifton1-7/+10
2003-01-17 * readelf.c (get_osabi_name): Handle ELFOSABI_AROS, ELFOSABI_OPENVMSAlan Modra1-0/+3
and ELFOSABI_NSK.
2003-01-16 * readelf.c: Include elf/ppc64.h.Alan Modra1-1/+5
(dump_relocations <EM_PPC64>): Use elf_ppc64_reloc_type. * Makefile.am: Run "make dep-am". * Makefile.in: Regenerate.
2003-01-04 * readelf.c (guess_is_rela): Handle EM_IQ2000.Stan Cox1-1/+8
(get_machine_name): Likewise. (dump_relocations): Likewise. * NEWS: Mention IQ2000 support.
2003-01-02 * readelf.c (get_machine_flags): Handle E_MIPS_ARCH_32R2.Richard Sandiford1-1/+2
2002-12-30Add support for msp430.Nick Clifton1-0/+8
2002-12-23 * readelf.c (main): Reset dump request after each file.Andreas Schwab1-1/+29
2002-12-10Add support for displaying extension to DWARF2 used by Unified Parallel CNick Clifton1-0/+8
compiler.
2002-12-07 * readelf.c (process_program_headers): When setting loadaddr, don'tAlan Modra1-112/+117
assume segment size is 4k. Use p_align instead. (loadaddr): Change from int to long. (dynamic_addr, dynamic_info, version_info): Likewise. (process_dynamic_segment <syminsz>): Likewise. (process_dynamic_segment): Adjust print format string. (rela_addr, rela_size): Delete. (process_relocs): Formatting.
2002-11-30s/boolean/bfd_boolean/ s/true/TRUE/ s/false/FALSE/. SimplifyAlan Modra1-1216/+1338
comparisons of bfd_boolean vars with TRUE/FALSE. Formatting.
2002-11-29 * readelf.c Replace occurrences of Elf32_Internal_* andJakub Jelinek1-91/+81
Elf64_Internal_* with Elf_Internal_*. (slurp_rel_relocs): Change Elf_Internal_Rel to Elf_Internal_Rela. Zero r_addend fields. (dump_relocations): Remove relas variable, change Elf_Internal_Rel to Elf_Internal_Rela.
2002-11-14Handle binaries with corrupt section or segment headersNick Clifton1-4/+13