summaryrefslogtreecommitdiffstats
path: root/binutils/objdump.c
Commit message (Collapse)AuthorAgeFilesLines
...
* * bucomm.c: Replace CONST with const.Alan Modra2002-06-081-3/+3
| | | | | * nm.c: Likewise. * objdump.c: Likewise.
* * objdump.c: Fix formatting.Alan Modra2002-06-031-9/+5
|
* * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_THREAD_LOCALJakub Jelinek2002-05-231-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | for symbols from SHF_TLS section. (_bfd_elf_print_private_bfd_data): Add PT_TLS. (elf_fake_sections): Set SHF_TLS for SEC_THREAD_LOCAL sections. (map_sections_to_segments): Build PT_TLS segment if necessary. (assign_file_positions_for_segments): Likewise. (get_program_header_size): Account for PT_TLS segment. (swap_out_syms): Set type of BSF_THREAD_LOCAL symbols and symbols from SEC_THREAD_LOCAL sections to STT_TLS. * reloc.c: Add 386 and IA-64 TLS relocs. * section.c (SEC_THREAD_LOCAL): Define. (SEC_CONSTRUCTOR_TEXT, SEC_CONSTRUCTOR_DATA, SEC_CONSTRUCTOR_BSS): Remove. * elflink.h (elf_link_add_object_symbols): Support .tcommon. (size_dynamic_sections): If DF_STATIC_TLS, set DF_FLAGS unconditionally. (struct elf_final_link_info): Add first_tls_sec. (elf_bfd_final_link): Set first_tls_sec. Compute elf_hash_table (info)->tls_segment. (elf_link_output_extsym): Handle STT_TLS symbols. (elf_link_input_bfd): Likewise. * syms.c (BSF_THREAD_LOCAL): Define. * bfd-in2.h: Rebuilt. * libbfd.h: Rebuilt. * elf32-i386.c (elf_i386_tls_transition, dtpoff_base, tpoff, elf_i386_mkobject, elf_i386_object_p): New functions. (elf_howto_table): Add TLS relocs. (elf_i386_reloc_type_lookup): Support TLS relocs. (elf_i386_info_to_howto_rel): Likewise. (struct elf_i386_link_hash_entry): Add tls_type. (struct elf_i386_obj_tdata): New. (elf_i386_hash_entry, elf_i386_tdata, elf_i386_local_got_tls_type): New macros. (struct elf_i386_link_hash_table): Add tls_ldm_got. (link_hash_newfunc): Clear tls_type. (elf_i386_check_relocs): Support TLS relocs. (elf_i386_gc_sweep_hook): Likewise. (allocate_dynrelocs): Likewise. (elf_i386_size_dynamic_sections): Likewise. (elf_i386_relocate_section): Likewise. (elf_i386_finish_dynamic_symbol): Likewise. (bfd_elf32_mkobject, elf_backend_object_p): Define. * elfxx-ia64.c (struct elfNN_ia64_dyn_sym_info): Add tprel_offset, dtpmod_offset, dtprel_offset, tprel_done, dtpmod_done, dtprel_done, want_tprel, want_dtpmod, want_dtprel. (elfNN_ia64_tprel_base, elfNN_ia64_dtprel_base): New functions. (ia64_howto_table): Add TLS relocs, rename R_IA64_LTOFF_TP22 to R_IA64_LTOFF_TPREL22. (elf_code_to_howto_index): Add TLS relocs. (elfNN_ia64_check_relocs): Support TLS relocs. (allocate_global_data_got): Account for TLS .got data. (allocate_dynrel_entries): Account for TLS dynamic relocations. (elfNN_ia64_install_value): Supprt TLS relocs. (set_got_entry): Support TLS relocs. (elfNN_ia64_relocate_section): Likewise. * config/obj-elf.c (elf_common): Renamed from obj_elf_common. (obj_elf_common): Call elf_common. (obj_elf_tls_common): New function. (elf_pseudo_tab): Support .tls_common. (special_sections): Add .tdata and .tbss. (obj_elf_change_section): Set SEC_THREAD_LOCAL for SHF_TLS sections. (obj_elf_parse_section_letters): Support T in section flags (SHF_TLS). (obj_elf_parse_section_letters): Include T in error message. * config/tc-ppc.c (ppc_section_letter): Likewise. * config/tc-alpha.c (alpha_elf_section_letter): Likewise. (tc_gen_reloc): Handle SEC_THREAD_LOCAL the same way as SEC_MERGE. * config/tc-sparc.c (md_apply_fix3): Likewise. * config/tc-i386.c (tc_i386_fix_adjustable): Add TLS relocs. Define them if not BFD_ASSEMBLER. (lex_got): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF, @DTPOFF and @NTPOFF. (md_apply_fix3): Add TLS relocs. * config/tc-ia64.c (enum reloc_func): Add FUNC_DTP_MODULE, FUNC_DTP_RELATIVE, FUNC_TP_RELATIVE, FUNC_LT_DTP_MODULE, FUNC_LT_DTP_RELATIVE, FUNC_LT_TP_RELATIVE. (pseudo_func): Support @dtpmod(), @dtprel() and @tprel(). (ia64_elf_section_letter): Include T in error message. (md_begin): Support TLS operators. (md_operand): Likewise. (ia64_gen_real_reloc_type): Support TLS relocs. * testsuite/gas/i386/tlspic.s: New file. * testsuite/gas/i386/tlsd.s: New file. * testsuite/gas/i386/tlsnopic.s: New file. * testsuite/gas/i386/tlsd.d: New file. * testsuite/gas/i386/tlsnopic.d: New file. * testsuite/gas/i386/tlspic.d: New file. * testsuite/gas/i386/i386.exp: Add tlsd, tlsnopic and tlspic tests. * testsuite/gas/ia64/tls.s: New file. * testsuite/gas/ia64/tls.d: New file. * testsuite/gas/ia64/ia64.exp: Add tls test. * write.c (adjust_reloc_syms): Don't change symbols in SEC_THREAD_LOCAL sections to STT_SECTION + addend. * elf/common.h (PT_TLS, SHF_TLS, STT_TLS, DF_STATIC_TLS): Define. * elf/ia64.h (R_IA64_LTOFF_TPREL22): Renamed from R_IA64_LTOFF_TP22. * elf/i386.h: Add TLS relocs. * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss. * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for output section if necessary. Handle .tbss. (lang_size_sections): Clear _raw_size for .tbss section (it allocates space in PT_TLS segment only). * ldwrite.c (build_link_order): Build link order for .tbss too. * readelf.c (get_segment_type): Add PT_TLS. (get_elf_section_flags): Add SHF_TLS. (get_dynamic_flags): Optimize. Add DF_STATIC_TLS. (process_dynamic_segment): Use puts instead of printf. (get_symbol_type): Support STT_TLS. * objdump.c (dump_section_header): Remove SEC_CONSTRUCTOR_TEXT, SEC_CONSTRUCTOR_DATA, SEC_CONSTRUCTOR_BSS. Add SEC_THREAD_LOCAL.
* * filemode.c: Fix formatting.Kazu Hirata2002-05-211-39/+39
| | | | | | | | | | | | | | * ieee.c: Likewise. * is-ranlib.c: Likewise. * is-strip.c: Likewise. * maybe-ranlib.c: Likewise. * maybe-strip.c: Likewise. * nlmconv.c: Likewise. * nm.c: Likewise. * not-ranlib.c: Likewise. * not-strip.c: Likewise. * objcopy.c: Likewise. * objdump.c: Likewise.
* * objdump.c (dump_headers): Fix output formatting for ELF32Thiemo Seufer2002-05-211-1/+5
| | | | | | architectures in a BFD64 enabled toolchain. * bfd/bfd.c (bfd_get_arch_size): Remove bfd_set_error call for non-ELF targets.
* 2002-01-29 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz2002-01-291-1/+1
| | | | | | * objdump.c: Include "getopt.h" after "bucomm.h" so that __GNU_LIBRARY__ will be defined. * size.c: Likewise.
* Tidy up formatting of --help output.Nick Clifton2002-01-231-9/+10
|
* * addr2line.c (main): Protoype.Thiemo Seufer2001-12-181-0/+2
| | | | | | | | | | * ar.c (main): Protoype. * nm.c (main): Protoype. * objcopy.c (main): Protoype. * objdump.c (main): Protoype. * size.c (main): Protoype. * strings.c (main): Protoype. * gasp.c (main): Protoype.
* * coffdump.c (PROGRAM_VERSION): Delete.Alan Modra2001-10-021-1/+1
| | | | | | | | | | | | | | | | (main <'V'>): Call print_version. * srconv.c: Likewise. * sysdump.c: Likewise. * version.c (program_version): Remove. (print_version): Use BFD_VERSION_STRING. Just print the current year in copyright message. * addr2line.c (program_version): Remove unused declaration. * objdump.c (display_target_tables): Use BFD_VERSION_STRING in place of BFD_VERSION. * Makefile.am (Makefile): Depend on bfd/configure.in (cplus-dem.o): Depend on Makefile. Run "make dep-am" * Makefile.in: Regenerate.
* * objdump.c (dump_section_header): Dump SEC_ARCH_BIT_0.Richard Henderson2001-09-281-3/+1
|
* * bucomm.c (fatal): Define using VPARAMS, VA_OPEN, VA_FIXEDARG,Alan Modra2001-09-261-20/+6
| | | | | | | | VA_CLOSE. (non_fatal): Likewise. * objdump.c (objdump_sprintf): Likewise. * readelf.c (error): Likewise. (warn): Likewise.
* Locale changes from Bruno Haible <haible@clisp.cons.org>.H.J. Lu2001-09-191-4/+7
|
* * ar.c (print_contents): Cast args of bfd_seek to the right types.Alan Modra2001-09-181-1/+1
| | | | | | | | | | 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-08-10 H.J. Lu <hjl@gnu.org>H.J. Lu2001-08-101-13/+17
| | | | | | | | | | | | | | | | | * nm.c (print_value): Add one arg, bfd *. (print_value): Replace fprintf_vma with bfd_fprintf_vma. (print_symbol_info_bsd): Also pass `abfd' to print_value (). (print_symbol_info_sysv): Likewise. (print_symbol_info_posix): Likewise. * objdump.c (dump_section_header): Replace printf_vma with bfd_printf_vma. (print_section_stabs): Likewise. (dump_bfd_header): Likewise. (objdump_print_value): Replace sprintf_vma with bfd_sprintf_vma. (disassemble_bytes): Likewise. (dump_reloc_set): Likewise.
* * readelf.c: Add missing prototypes.Alan Modra2001-08-091-107/+47
| | | | * objdump.c: Likewise. Format existing prototypes.
* 2001-08-03 John Healy <jhealy@redhat.com>John Healy2001-08-031-0/+1
| | | | | | Patch suggested by Frank Eigler <fche@redhat.com>. * objdump.c (disassemble_data): Fill in section member of the disasm_info structure.
* * bucomm.c (list_supported_architectures): New function.Alan Modra2001-07-291-0/+1
| | | | | * bucomm.h (list_supported_architectures): Declare. * objdump.c (usage): Call the above.
* 2001-07-25 Dave Brolley <brolley@redhat.com>Dave Brolley2001-07-251-0/+4
| | | | | * objdump.c (SKIP_ZEROES): Only define it if it is not already defined. (SKIP_ZEROES_AT_END): Only define it if it is not already defined.
* Remove section VMA adjustment when computing the address of the line to show.Nick Clifton2001-05-281-1/+4
|
* Fix typos in ChangeLogs and update copyright noticesNick Clifton2001-03-131-1/+2
|
* Change bfd_target_vector from an array to a pointerNick Clifton2001-02-071-5/+5
|
* Add OBJDUMP_DEFS to configure and makefileNick Clifton2001-01-091-5/+18
| | | | Check for DISASSEMBLER_NEEDS_RELOCS in objdump and read in relocs if set.
* 2000-08-17 Christopher C. Chimelis <chris@debian.org>H.J. Lu2000-08-181-1/+1
| | | | * objdump.c (LONGEST_ARCH): Set to sizeof("powerpc:common").
* Add optional style argument to --demangle switch.Nick Clifton2000-07-201-2/+15
|
* * objdump.c (usage): Make output of `objdump --help' moreMark Kettenis2000-07-121-33/+34
| | | | | consistent with the rest of the GNU world. Add a line describing the purpose of the program.
* Fix description of --stabs switchNick Clifton2000-06-241-1/+1
|
* Fix my inept 2000-05-24 change.Alan Modra2000-05-301-3/+3
|
* Ensure bfd_close after bfd_openw so we don't get multiple bfd_openwAlan Modra2000-05-251-0/+4
| | | | calls for same file.
* 2000-05-12 H.J. Lu <hjl@gnu.org>H.J. Lu2000-05-131-2/+2
| | | | | | | | | * nlmconv.c (temp_filename): Removed. * nlmconv.c (link_inputs): Use make_temp_file () instead of choose_temp_base (). * objdump.c (display_target_list): Likewise. (display_info_table): Likewise.
* Fix bug disassmbling binary files for non-octet byte targets.Timothy Wall2000-04-181-2/+4
|
* Portability fixes.Alan Modra2000-04-141-6/+0
|
* A mostly cosmetic tidy up of warnings and error message reporting.Alan Modra2000-04-071-31/+21
|
* SEC_BLOCK, SEC_CLINK, and C_STATLAB added (TI COFF support).Timothy Wall2000-04-071-0/+2
|
* Move translated part of bug report string back into .c files soAlan Modra2000-04-041-1/+1
| | | | xgettext can find it. Regnerate .pot files.
* Move bug report string to one place.Alan Modra2000-04-031-1/+1
|
* This lot mainly cleans up `comparison between signed and unsigned' gccAlan Modra2000-02-211-7/+7
| | | | | warnings. One usused var, and a macro parenthesis fix too. Also check input sections are elf when doing gc in elflink.h.
* Fix bug in interlisting option, added --file-start-context option.Timothy Wall2000-02-081-5/+11
|
* octets vs bytes changes for binutilsTimothy Wall2000-02-031-100/+111
|
* Add support for documenting target specific disassembler optionsNick Clifton2000-01-271-0/+2
|
* Overhaul --help outputNick Clifton1999-11-211-84/+137
|
* 1999-10-27 Fred Fish <fnf@cygnus.com>Ian Lance Taylor1999-10-281-14/+44
| | | | | | | | * objdump.c (display_bfd): Break into two functions. The actual dumping code moves to dump_bfd. If bfd is not unambiguously recognized as a bfd_object, attempt to dump it as a bfd_core. (dump_bfd): New function.
* comment fixIan Lance Taylor1999-09-191-1/+4
|
* 1999-09-12 Donn Terry <donn@interix.com>Ian Lance Taylor1999-09-121-2/+8
| | | | * objdump.c (dump_headers): If wide_output, print Flags header.
* 1999-09-12 Donn Terry <donn@interix.com>Ian Lance Taylor1999-09-121-0/+5
| | | | * objdump.c (dump_section_header): Print any comdat information.
* * objdump.c (exit_status): New static variable.Ian Lance Taylor1999-08-091-13/+34
| | | | | | | | | | (nonfatal): New static function. (disassemble_data): Set exit_status on error. (read_section_stabs): Likewise. (display_bfd): Likewise. Call nonfatal rather than bfd_nonfatal. (display_file): Call nonfatal rather than bfd_nonfatal. (display_target_list, display_info_table): Likewise. (main): Return exit_status rather than 0.
* * objdump.c (dump_section_header): Update for renaming ofIan Lance Taylor1999-08-091-1/+2
| | | | SEC_SHORT to SEC_SMALL_DATA. Print SEC_SHARED flag.
* * objdump.c (dump_section_header): Print SEC_SHORT.Richard Henderson1999-07-141-0/+1
|
* * Many files: Changes to avoid gcc warnings: Add ATTRIBUTE_UNUSEDIan Lance Taylor1999-07-111-8/+8
| | | | | | | | as appropriate. Add variable initializations. Add casts. * objdump.c (disassemble_bytes): Change j to bfd_vma. * readelf.c (process_syminfo): Change i to unsigned int. (display_debug_info): Change abbrev_number to unsigned long. (process_mips_specific): Change fcnt to size_t.
* Add -M command line switch to objdump - text of switch is passed on to ↵Nick Clifton1999-06-161-2/+12
| | | | | | disassembler Add support for register name set selection ot ARM disassembler.
* * objdump.c (disassemble_bytes): If the disassembler returns anIan Lance Taylor1999-06-131-1/+6
| | | | | error, print out anything it may have printed to the buffer. From H.J. Lu <hjl@gnu.org>.
OpenPOWER on IntegriCloud