aboutsummaryrefslogtreecommitdiff
path: root/binutils
AgeCommit message (Collapse)AuthorFilesLines
2009-03-202009-03-19 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-90/+177
* dwarf.c (dwarf_regnames): Moved before frame_need_space. (dwarf_regnames_count): Likewise. (frame_need_space): Return int. (display_debug_frames): Check invalid registers.
2009-03-192009-03-19 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-13/+18
* readelf.c (debug_apply_relocations): Check relocations against STT_SECTION symbol.
2009-03-192009-03-18 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-0/+8
* readelf.c (debug_apply_relocations): Allow relocations against function symbols.
2009-03-18include/Alan Modra4-455/+485
* alloca-conf.h: Revise based on autoconf-2.61, autoconf-2.13 documentation. bfd/ * elf32-m68hc1x.c: Include alloca-conf.h. * xsym.c: Likewise. * elf64-hppa.c: Likewise. Remove existing #if's handling alloca. * som.c: Likewise. * Makefile.am: Run "make dep-am". * Makefile.in: Regenerate. binutils/ * sysdep.h: Include alloca-conf.h instead of config.h and remove existing #if's handling alloca. * Makefile.am: Run "make dep-am". * Makefile.in: Regenerate. gas/ * as.h: Include alloca-conf.h instead of config.h and remove existing #if's handling alloca. * Makefile.am: Run "make dep-am". * Makefile.in: Regenerate. opcodes/ * Makefile.am: Run "make dep-am". * Makefile.in: Regenerate. * openrisc-opc.c: Regenerate. ld/ * ld.h: Remove alloca handling.
2009-03-14bfd/Richard Sandiford4-3/+11
* config.bfd: Treat AIX 6+ in the same way as AIX 5. * configure.in: Likewise. * configure: Regenerate. binutils/ * configure.tgt: Extend AIX 5 behavior to AIX 6 and above. * configure.in: Likewise. * configure: Regenerate. gas/ * configure.tgt: Extend AIX 5 behavior to AIX 6 and above. * configure.in: Likewise. * configure: Regenerate. ld/ * configure.tgt: Extend AIX 5 behavior to AIX 6 and above.
2009-03-13bfd/H.J. Lu2-0/+8
2009-03-13 H.J. Lu <hongjiu.lu@intel.com> PR binutils/9945 * elf.c (assign_section_numbers): Generate symbol table if there is any relocation in output. (_bfd_elf_compute_section_file_positions): Likewise. binutils/ 2009-03-13 H.J. Lu <hongjiu.lu@intel.com> PR binutils/9945 * objcopy.c (copy_object): Clear HAS_RELOC when stripping all.
2009-03-11 * binutils-all/objdump.W, binutils-all/objdump.s: Don't matchJoseph Myers3-2/+7
literal "tmpdir/" in expected output.
2009-03-11[bfd/ChangeLog]Chris Demetriou5-0/+82
2009-03-11 Chris Demetriou <cgd@google.com> * bfd.c (BFD_DETERMINISTIC_OUTPUT): New flag. * bfd-in2.h: Regenerate. * archive.c (bfd_ar_hdr_from_filesystem): If BFD_DETERMINISTIC_OUTPUT flag is set, use 0 for uid, gid, and timestamp, and use 0644 for file mode. (bsd_write_armap): Likewise. (_bfd_archive_bsd_update_armap_timestamp): If BFD_DETERMINISTIC_OUTPUT flag is set, do nothing. (coff_write_armap): If BFD_DETERMINISTIC_OUTPUT flag is set, use 0 for timestamp. [binutils/ChangeLog] 2009-03-11 Chris Demetriou <cgd@google.com> * ar.c (deterministic): New global variable. (main): Recognize new 'D' option, which enables 'deterministic mode'. (usage): Document new 'D' option. (write_archive): Set BFD_DETERMINISTIC_OUTPUT in output archive's flags if deterministic mode was requested. * doc/binutils.texi (ar): Document deterministic mode ('D' option). [binutils/testsuite/ChangeLog] 2009-03-11 Chris Demetriou <cgd@google.com> * binutils-all/ar.exp (deterministic_archive): New test.
2009-03-10binutils/H.J. Lu5-1/+25
2009-03-09 H.J. Lu <hongjiu.lu@intel.com> PR binutils/9933 * objcopy.c (filter_symbols): Properly handle common symbols in relocatable file. binutils/testsuite/ 2009-03-09 H.J. Lu <hongjiu.lu@intel.com> PR binutils/9933 * binutils-all/copy-4.d: New. * binutils-all/objcopy.exp: Run copy-4.
2009-03-06Updated Spanish translations.Nick Clifton2-978/+1462
2009-03-05 * objdump.c (disassemble_section): If the computed next offset isNick Clifton2-2/+8
not beyond the current offset then just continue to the end.
2009-03-042009-03-04 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-0/+5
* MAINTAINERS: Add myself as VMS maintainer.
2009-03-04missing from make dep-am commitAlan Modra1-0/+5
2009-03-03 * config/hppa.sed: Fix spelling.Dave Anglin2-1/+5
2009-03-03Update formatting.Nick Clifton1-0/+4
2009-03-03make dep-am and regenAlan Modra2-170/+150
opcodes/ * Makefile.am (HFILES): Move lm32-desc.h and lm32-opc.h from.. (CFILES): ..here.
2009-03-03 * objdump.c (disassemble_section): Mask address before sign extending.Alan Modra2-4/+8
2009-03-02 * binutils-all/localize-hidden-1.s: Change .equ to .set.Dave Anglin3-13/+18
* binutils-all/localize-hidden-2.s: Likewise.
2009-03-02 * ieee.c (parse_ieee_ty): Add support for undocumented 'v' type.Nick Clifton2-2/+19
(parse_ieee_bb): Set the filename if it has not already been discovered.
2009-03-02 * readelf.c (adjust_relative_path): New function.Nick Clifton2-562/+859
(struct archive_info): New type. (setup_archive): New function. (release_archive): New function. (setup_nested_archive): New function. (get_archive_member_name): New function. (get_archive_member_name_at): New function. (make_qualified_name): New function. (process_archive): Factor out code for reading archive index and long filename table to setup_archive. Add support for thin archives.
2009-03-02 * po/sk.po: Updated Slovak translation.Nick Clifton2-1133/+1611
2009-03-01 Backport from git Libtool:Ralf Wildenhues2-4/+8
2009-01-19 Robert Millan <rmh@aybabtu.com> Support GNU/kOpenSolaris. * libltdl/m4/libtool.m4 (_LT_SYS_DYNAMIC_LINKER) (_LT_CHECK_MAGIC_METHOD, _LT_COMPILER_PIC, _LT_LINKER_SHLIBS) (_LT_LANG_CXX_CONFIG) [kopensolaris*-gnu]: Recognize GNU/kOpenSolaris. binutils/ * configure: Regenerate. opcodes/ * configure: Regenerate. bfd/ * configure: Regenerate. gas/ * configure: Regenerate. gprof/ * configure: Regenerate. ld/ * configure: Regenerate.
2009-02-23 * objdump.c (load_specific_debug_section): New function, fromCary Coutant2-17/+43
load_debug_section. (load_debug_section): Use load_specific_debug_section. (dump_dwarf_section): Likewise.
2009-02-23 * readelf.c (parse_args): Select all sections explicitly for -w.Cary Coutant2-1/+8
2009-02-092009-02-09 Kai Tietz <kai.tietz@onevision.com>Kai Tietz2-1/+5
* windres.c (set_endianess): Copy name without leading '-'.
2009-02-092009-02-09 Tristan Gingold <gingold@adacore.com>Tristan Gingold7-172/+247
* NEWS: Mention feature match between objdump and readelf for dumping dwarf info. * doc/binutils.texi (objdump): Document -W/--dwarf improvments to objdump. * objdump.c (usage): Update documentation for -W/--dwarf. (enum option_values): Add OPTION_DWARF. (long_options): --dwarf can accept arguments. (dump_dwarf_section): Also check enabled field. (main): Option -W can accept arguments, code moved to dwarf.c and call dwarf_select_sections_all instead. * readelf.c (process_section_headers): Remove do_debug_lines_decoded. (parse_args): Move code to... * dwarf.c (dwarf_select_sections_by_letters, dwarf_select_sections_by_names): : ...here (new functions). (do_debug_lines_decoded): Remove and replaced by ... (FLAG_DEBUG_LINES_RAW, FLAG_DEBUG_LINES_DECODED): ... new macros. (display_debug_lines): Adjust for previous change. (dwarf_select_sections_all): New function. (debug_displays): Add initializer for enabled field. * dwarf.h (do_debug_lines_decoded): Remove. Add prototypes for the new functions. (struct dwarf_section_display): Add enabled field.
2009-02-06Updated Vietnamese translation.Nick Clifton2-1355/+1639
2009-02-03bfd:Joseph Myers2-0/+5
2009-02-03 Sandip Matte <sandip@rmicorp.com> * aoutx.h (NAME (aout, machine_type)): Handle bfd_mach_mips_xlr. * archures.c (bfd_mach_mips_xlr): Define. * bfd-in2.h: Regenerate. * cpu-mips.c (I_xlr): Define. (arch_info_struct): Add XLR entry. * elfxx-mips.c (_bfd_elf_mips_mach): Handle E_MIPS_MACH_XLR. (mips_set_isa_flags): Handle bfd_mach_mips_xlr (mips_mach_extensions): Add XLR entry. binutils: 2009-02-03 Sandip Matte <sandip@rmicorp.com> * readelf.c (get_machine_flags): Handle E_MIPS_MACH_XLR. gas: 2009-02-03 Sandip Matte <sandip@rmicorp.com> * config/tc-mips.c (macro): Handle M_MSGSND, M_MSGLD, M_MSGLD_T, M_MSGWAIT and M_MSGWAIT_T. (mips_cpu_info_table): Add XLR entry. * doc/c-mips.texi (-march): Document xlr. gas/testsuite: 2009-02-03 Sandip Matte <sandip@rmicorp.com> * gas/mips/mips.exp (xlr): New architecture. (xlr-ext): Run test. * gas/mips/xlr-ext.d, gas/mips/xlr-ext.s: New. include/elf: 2009-02-03 Sandip Matte <sandip@rmicorp.com> * mips.h (E_MIPS_MACH_XLR): Define. include/opcode: 2009-02-03 Sandip Matte <sandip@rmicorp.com> * mips.h (INSN_XLR): Define. (INSN_CHIP_MASK): Update. (CPU_XLR): Define. (OPCODE_IS_MEMBER): Update. (M_MSGSND, M_MSGLD, M_MSGLD_T, M_MSGWAIT, M_MSGWAIT_T): Define. opcodes: 2009-02-03 Sandip Matte <sandip@rmicorp.com> * mips-dis.c (mips_cp0_names_xlr, mips_cp0sel_names_xlr): Define. (mips_arch_choices): Add XLR entry. * mips-opc.c (XLR): Define. (mips_builtin_opcodes): Add XLR instructions.
2009-02-03binutils/H.J. Lu2-6/+6
2009-02-03 H.J. Lu <hongjiu.lu@intel.com> * NEWS: Move --as-needed change to ... * ../ld/NEWS: Here. ld/ 2009-02-03 Alan Modra <amodra@bigpond.net.au> * NEWS: Mention --as-needed change.
2009-02-03bfd:Joseph Myers8-1/+104
2009-02-03 Carlos O'Donell <carlos@codesourcery.com> * configure.in: AC_SUBST pdfdir. * Makefile.am: Add install-pdf, install-pdf-am and install-pdf-recursive targets. Define pdfdir. * doc/Makefile.am: Define pdf__strip_dir. Add install-pdf and install-pdf-am targets. * po/Make-in: Add install-pdf target. * configure: Regenerate. * Makefile.in: Regenerate * doc/Makefile.in: Regenerate. binutils: 2009-02-03 Carlos O'Donell <carlos@codesourcery.com> * configure.in: AC_SUBST pdfdir. * Makefile.am: Add install-pdf, install-pdf-am, and install-pdf-recursive targets. * doc/Makefile.am: Define pdf__strip_dir. Add install-pdf and install-pdf-am targets. * po/Make-in: Add install-pdf target. * configure: Regenerate. * Makefile.in: Regenerate. * doc/Makefile.in: Regenerate. etc: 2009-02-03 Carlos O'Donell <carlos@codesourcery.com> * configure.in: AC_SUBST pdfdir. * configure: Regenerate. gas: 2009-02-03 Carlos O'Donell <carlos@codesourcery.com> * configure.in: AC_SUBST pdfdir. * Makefile.am: Add install-pdf, install-pdf-am, and install-pdf-recursive targets. * doc/Makefile.am: Define pdf__strip_dir. Add install-pdf and install-pdf-am targets. * po/Make-in: Add install-pdf target. * configure: Regenerate. * Makefile.in: Regenerate. * doc/Makefile.in: Regenerate. gprof: 2009-02-03 Carlos O'Donell <carlos@codesourcery.com> * configure.in: AC_SUBST pdfdir. * Makefile.am: Add install-pdf, install-pdf-am, and install-pdf-recursive targets. Define pdf__strip_dir. * po/Make-in: Add install-pdf target. * configure: Regenerate. * Makefile.in: Regenerate. ld: 2009-02-03 Carlos O'Donell <carlos@codesourcery.com> * configure.in: AC_SUBST pdfdir. * Makefile.am: Add install-pdf, install-pdf-am, and install-pdf-recursive targets. Define pdf__strip_dir. * po/Make-in: Add install-pdf target. * configure: Regenerate. * Makefile.in: Regenerate. opcodes: 2009-02-03 Carlos O'Donell <carlos@codesourcery.com> * Makefile.am: Add install-pdf target. * po/Make-in: Add install-pdf target. * Makefile.in: Regenerate.
2009-02-032009-02-03 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu6-19/+120
PR binutils/9784 * NEWS: Mention --prefix=PREFIX and --prefix-strip=LEVEL. * doc/binutils.texi: Document --prefix=PREFIX and --prefix-strip=LEVEL. * objdump.c: Include "filenames.h". (prefix): New. (prefix_strip): Likewise. (prefix_length): Likewise. (usage): Add --prefix=PREFIX and --prefix-strip=LEVEL. (option_values): Add OPTION_PREFIX and OPTION_PREFIX_STRIP. (long_options): Likewise. (show_line): Handle prefix and prefix_strip. (main): Handle OPTION_PREFIX and OPTION_PREFIX_STRIP. * readelf.c (PATH_MAX): Moved to ... * sysdep.h: Here.
2009-01-31binutils/Alan Modra2-0/+9
* NEWS: Mention --as-needed change. ld/ * ld.texinfo (--as-needed): Update. bfd/ * elflink.c (on_needed_list): New function. (elf_link_add_object_symbols): Link in --as-needed libs if they satisfy undefined symbols in other libs.
2009-01-29 PR 9798Alan Modra4-29/+58
* bucomm.c (bfd_nonfatal_message): Use bfd_get_archive_filename. (bfd_get_archive_filename): Constify param. * bucomm.h (bfd_get_archive_filename): Update prototype. * objcopy.c (RETURN_NONFATAL): Delete. (copy_unknown_object): Don't call bfd_get_archive_filename for bfd_nonfatal_message filename, instead just pass bfd. (copy_object): Likewise. (copy_archive, copy_file): Likewise. Expand RETURN_NONFATAL. On bfd_close errors, do not pass the bfd to bfd_nonfatal_message. (setup_bfd_headers): Fix error message.
2009-01-29 * config/tc-mep.h (DIFF_EXPR_OK): Do not define.Nick Clifton2-4/+9
* gas/all/gas.exp: Expect forward test to fail for MeP. Expect relax test to fail for MeP. * gas/mep/relocs.d: Update expected disassembly. * lib/ld-lib.exp (check_gc_sections_available): Add MeP to list of targets which do not support garbage collection. * ld-srec/srec.exp (run_srec_test): Expect tests to fail for MeP. * ld-elf/group8a.d: Likewise. * ld-elf/group8b.d: Likewise. * ld-elf/group9a.d: Likewise. * ld-elf/group9b.d: Likewise. * binutils-all/objdump.W: Do not assume that high and low PC addresses will have been computed.
2009-01-27 PR 9774Nick Clifton2-2/+18
* objdump.c (disassemble_section): When the target uses signed addresses make sure that we compute signed values.
2009-01-27 * MAINTAINERS: Remove Thiemo Seufer's name from the list of MIPSNick Clifton2-1/+5
maintainers.
2009-01-26 PR 9766Nick Clifton2-2/+9
* dlltool.c (xlate): When strip text after the @ sign, look for the last one not the first one.
2009-01-16bfd/Alan Modra3-32/+19
* Makefile.am (libbfd_la_LIBADD, libbfd_la_LDFLAGS): Substitute SHARED_LIBADD and SHARED_LDFLAGS rather than WIN32LIBADD, WIN32LDFLAGS. * configure.in (commonbfdlib): Delete. (SHARED_LDFLAGS): Rename from WIN32LDFLAGS/ (SHARED_LIBADD): Rename from WIN32LIBADD. Add pic libiberty if such is available, not just for linux. * po/SRC-POTFILES.in: Regenerate. * Makefile.in: Regenerate. * configure: Regenerate. opcodes/ * configure.in (commonbfdlib): Delete. (SHARED_LIBADD): Add pic libiberty if such is available. * configure: Regenerate. * po/POTFILES.in: Regenerate. binutils/ * configure.in (commonbfdlib): Delete. * configure: Regenerate. gas/ * configure.in (commonbfdlib): Delete. * configure: Regenerate. * po/POTFILES.in: Regenerate.
2009-01-14Cleanup code related to --identify option.Nick Clifton2-66/+180
* binutils/dlltool.c (file scope): Removed globals identify_ms, identify_member_contains_symname_result, identify_dll_name_list_head, and identify_dll_name_list_tail. Renamed existing typedef dll_name_list_type to dll_name_list_node_type. Added new typedefs dll_name_list_type, symname_search_data_type, and identify_data_type. (identify_append_dll_name_to_list): Renamed to... (dll_name_list_append): ...here. Changed signature to accept list argument rather than use global. (identify_count_dll_name_list): Renamed to... (dll_name_list_count): ...here. Changed signature to accept list argument rather than use global. (identify_print_dll_name_list): Renamed to... (dll_name_list_print): ...here. Changed signature to accept list argument rather than use global. (identify_free_dll_name_list): Renamed to... (dll_name_list_free_contents): ...here. (dll_name_list_free): New function. (dll_name_list_create): New function. (identify_process_section_p): Changed signature to accept ms_style_implib argument rather than use global. (identify_member_contains_symname): Expect incoming void * data to be symname_search_data_type. (identify_dll_for_implib): Use new functions dll_name_list_create and dll_name_list_free. Use new types symname_search_data_type and identify_data_type to communicate with search routines. (identify_search_section): Expect incoming void * data to be identify_data_type. Use its contents rather than global variables.
2009-01-14missed commitAlan Modra1-0/+1
2009-01-13Add --identify-strict option. Handle ms-style implibs:Nick Clifton4-96/+322
* dlltool.c (file scope): Added new globals identify_ms and identify_strict. New typedef dll_name_list_type, and globals identify_dll_name_list_head and identify_dll_name_list_tail. Added new global identify_member_contains_symname_result. (identify_append_dll_name_to_list): New function. (identify_count_dll_name_list): New function. (identify_print_dll_name_list): New function. (identify_free_dll_name_list): New function. (identify_search_archive): Changed signature to take function pointer to operation to apply to each member, and data to pass on to that function. (identify_search_member): Changed signature to accept user data from caller. (identify_member_contains_symname): New function. (identify_dll_for_implib): Rewrite. Now determines whether implib is ms- or binutils- style, before searching sections for dllname. Allows multiple dllnames. (identify_process_section_p): Search alternate section for dllname when implib is ms-style. (identify_search_section): Add additional conditions to excludes candidate sections from consideration. (usage): Added --identify-strict. (long_options): Added --identify-strict. (main): Handle --identify-strict option. * doc/binutils.texi: Document --identify-strict option. * NEWS: Document --identify and --identify-strict options.
2009-01-13 PR 7034Alan Modra2-1/+8
* doc/binutils.texi (objdump -R): Note effect of -d or -D.
2009-01-12 * objdump.c (disassemble_section): Don't assume non-instructionAlan Modra1-0/+5
data if object symbol at given address is in different section.
2009-01-122009-01-12 Kai Tietz <kai.tietz@onevision.com>Kai Tietz2-101/+121
* dlltool.c (create_for_pep): New. (flush_page): Use create_for_pep instead of using macro DLLTOOL_MX86_64 clause. (generate_idata_ofile): Likewise. (make_one_lib_file): Likewise. (make_head): Likewise. (make_tail): Likewise. (main): Initialize create_for_pep.
2009-01-082009-01-08 Kai Tietz <kai.tietz@onevision.com>Kai Tietz4-4/+46
* dlltool.c (use_nul_prefixed_import_tables): New. (make_head): Make prefix leading zero prefix element for idata$4 and idata$5 dependent to new flag. (usage): Add new option --use-nul-prefixed-import-tables. (OPTION_USE_NUL_PREFIXED_IMPORT_TABLES): New. (long_options): Add --use-nul-prefixed-import-tables. (main): Likewise. * doc/binutils.texi: Add new option documentation for --use-nul-prefixed-import-tables. * NEWS: Add new option.
2009-01-062009-01-06 Kai Tietz <kai.tietz@onevision.com>Kai Tietz3-876/+916
* windres.c (set_endianess): Get architecture name for internal target names like "pe-arm-wince-little". (find_arch_match): New helper. * ChangeLog: Reset it. * ChangeLog-2008: Moved old ChangeLog.
2008-12-23Add LM32 port.Nick Clifton3-0/+15
2008-12-232008-12-23 Kai Tietz <kai.tietz@onevision.com>Kai Tietz2-0/+8
* rcparse.y (rcdata_data): Allow empty comma elements.
2008-12-23Remove STT_IFUNC support.Nick Clifton4-45/+9
2008-12-21Add missing ChangeLog entries for my last commit.Ralf Wildenhues1-0/+4