summaryrefslogtreecommitdiffstats
path: root/binutils
Commit message (Collapse)AuthorAgeFilesLines
* include/Jakub Jelinek2006-07-102-0/+183
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * bfdlink.h (struct bfd_link_info): Add emit_hash and emit_gnu_hash bitfields. include/elf/ * common.h (SHT_GNU_HASH, DT_GNU_HASH): Define. ld/ * scripttempl/elf.sc: Add .gnu.hash section. * emultempl/elf32.em (OPTION_HASH_STYLE): Define. (gld${EMULATION_NAME}_add_options): Register --hash-style option. (gld${EMULATION_NAME}_handle_option): Handle it. (gld${EMULATION_NAME}_list_options): Document it. * ldmain.c (main): Initialize emit_hash and emit_gnu_hash. * ld.texinfo: Document --hash-style option. bfd/ * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_GNU_HASH. (bfd_section_from_shdr, elf_fake_sections, assign_section_numbers): Handle SHT_GNU_HASH. (special_sections_g): Include .gnu.hash section. (bfd_elf_gnu_hash): New function. * elf-bfd.h (bfd_elf_gnu_hash, _bfd_elf_hash_symbol): New prototypes. (struct elf_backend_data): Add elf_hash_symbol method. * elflink.c (_bfd_elf_link_create_dynamic_sections): Create .hash only if info->emit_hash, create .gnu.hash section if info->emit_gnu_hash. (struct collect_gnu_hash_codes): New type. (elf_collect_gnu_hash_codes, elf_renumber_gnu_hash_syms, _bfd_elf_hash_symbol): New functions. (compute_bucket_count): Don't compute HASHCODES array, instead add that and NSYMS as arguments. Use bed->s->sizeof_hash_entry instead of bed->s->arch_size / 8. Fix .hash size estimation. When not optimizing, use the number of hashed symbols rather than dynsymcount. (bfd_elf_size_dynamic_sections): Only add DT_HASH if info->emit_hash, and ADD DT_GNU_HASH if info->emit_gnu_hash. (bfd_elf_size_dynsym_hash_dynstr): Size .hash only if info->emit_hash, adjust compute_bucket_count caller. Create and populate .gnu.hash section if info->emit_gnu_hash. (elf_link_output_extsym): Only populate .hash section if finfo->hash_sec != NULL. (bfd_elf_final_link): Adjust assertion. Handle DT_GNU_HASH. * elfxx-target.h (elf_backend_hash_symbol): Define if not yet defined. (elfNN_bed): Add elf_backend_hash_symbol. * elf64-x86-64.c (elf64_x86_64_hash_symbol): New function. (elf_backend_hash_symbol): Define. * elf32-i386.c (elf_i386_hash_symbol): New function. (elf_backend_hash_symbol): Define. binutils/ * readelf.c (get_dynamic_type): Handle DT_GNU_HASH. (get_section_type_name): Handle SHT_GNU_HASH. (dynamic_info_DT_GNU_HASH): New variable. (process_dynamic_section): Handle DT_GNU_HASH. (process_symbol_table): Print also DT_GNU_HASH histogram. ld/testsuite/ * ld-powerpc/tlsso32.r: Adjust. * ld-powerpc/tlsso32.d: Adjust. * ld-powerpc/tlsso32.g: Adjust. * ld-powerpc/tlsso.r: Adjust. * ld-powerpc/tlsso.g: Adjust. * ld-powerpc/tlstocso.g: Adjust.
* 2006-07-06 Mohammed Adnène Trojette <adn@diwi.org>Nick Clifton2006-07-062-2/+6
| | | | | PR binutils/2875 * doc/binutils.texi (readelf): Fix spelling typo.
* PR binutils/2879Nick Clifton2006-07-063-3/+11
| | | | | * doc/binutils.texi: Document -T shorthand for --target switch. * strings.c: Update comment to include -T option.
* * dwarf.c (display_debug_frames): Catch a corrupt length field generating anNick Clifton2006-06-302-11/+41
| | | | | | | end of block address that is beyond the end of the section. When encountering a corrupt CIE pointer do not reset the start pointer as more data still has to be read. Do not warn about user defined call frame instructions.
* * readelf.c (process_section_headers): Add H8/300 support.DJ Delorie2006-06-292-0/+21
|
* binutils/testsuite/Richard Sandiford2006-06-242-13/+20
| | | | | * binutils-all/localize-hidden-1.d: Use objdump --syms instead of readelf.
* binutils/Richard Sandiford2006-06-239-1/+124
| | | | | | | | | | | | | | | | | | | * objcopy.c (localize_hidden): New variable. (OPTION_LOCALIZE_HIDDEN): New command_line_switch value. (copy_options): Add --localize-hidden. (copy_usage): Mention --localize-hidden. (is_hidden_symbol): New function. (filter_symbols): Handle localize_hidden. (copy_object): Call filter_symbols if localize_hidden. (copy_main): Handle OPTION_LOCALIZE_HIDDEN. * doc/binutils.texi (--localize-hidden): Document new option. binutils/testsuite/ * binutils-all/localize-hidden-1.s, * binutils-all/localize-hidden-1.d, * binutils-all/localize-hidden-2.s, * binutils-all/localize-hidden-2.d: New tests. * binutils-all/objcopy.exp: Run them.
* * Makefile.am (ar_DEPENDENCIES, ranlib_DEPENDENCIES)Daniel Jacobowitz2006-06-233-11/+20
| | | | | (dlltool_DEPENDENCIES, windres_DEPENDENCIES): Remove @LEXLIB@. * Makefile.in: Regenerate.
* * Makefile.am (*_DEPENDENCIES): Add missing dependencies.Alan Modra2006-06-233-45/+50
| | | | * Makefile.in: Regenerate.
* bfd/doc:Joseph Myers2006-06-072-1/+5
| | | | | | | | | | | | | | | | | | | | | | * bfd.texinfo: Remove local @tex code. bfd: * po/Make-in (pdf, ps): New dummy targets. binutils: * po/Make-in (pdf, ps): New dummy targets. gas: * po/Make-in (pdf, ps): New dummy targets. gprof: * po/Make-in (pdf, ps): New dummy targets. ld: * po/Make-in (pdf, ps): New dummy targets. opcodes: * po/Make-in (pdf, ps): New dummy targets.
* 2006-06-06 Paul Brook <paul@codesourcery.com>Paul Brook2006-06-073-0/+74
| | | | | | | | | | | | | | | | | | | | | | | | | | opcodes/ * arm-dis.c (coprocessor_opcodes): Add %c to unconditional arm instructions. (neon_opcodes): Add conditional execution specifiers. (thumb_opcodes): Ditto. (thumb32_opcodes): Ditto. (arm_conditional): Change 0xe to "al" and add "" to end. (ifthen_state, ifthen_next_state, ifthen_address): New. (IFTHEN_COND): Define. (print_insn_coprocessor, print_insn_neon): Print thumb conditions. (print_insn_arm): Change %c to use new values of arm_conditional. (print_insn_thumb16): Print thumb conditions. Add %I. (print_insn_thumb32): Print thumb conditions. (find_ifthen_state): New function. (print_insn): Track IT block state. gas/testsuite/ * gas/arm/thumb2_bcond.d: Update expected output. * gas/arm/thumb32.d: Ditto. * gas/arm/vfp1_t2.d: Ditto. * gas/arm/vfp1xD_t2.d: Ditto. binutils/testsuite/ * binutils-all/arm/objdump.exp: New file. * binutils-all/arm/thumb2-cond.s: New test.
* bfd/, binutils/, gas/, gprof/, ld/, opcodes/Daniel Jacobowitz2006-06-052-0/+5
| | | | * po/Make-in (top_builddir): Define.
* * config.in: Regenerate.Alan Modra2006-06-052-85/+6
|
* binutils:Joseph Myers2006-06-023-12/+11
| | | | | | | | | | | | | | * doc/Makefile.am (TEXI2DVI): Define. * doc/Makefile.in: Regenerate. gas: * doc/Makefile.am (TEXI2DVI): Define. * doc/Makefile.in: Regenerate. * doc/c-arc.texi: Fix typo. ld: * Makefile.am (TEXI2DVI): Add -I $(top_srcdir)/../libiberty. * Makefile.in: Regenerate.
* Configury changes: update src repository (binutils, gdb, and rda) to useDaniel Jacobowitz2006-05-316-2952/+781
| | | | | config/gettext-sister.m4 instead of the old gettext.m4. Regenerate all affected autotools files. Include intl in gdb releases again.
* Update Spanish translationNick Clifton2006-05-302-1397/+1574
|
* * MAINTAINERS: Update my email address.Joern Rennecke2006-05-252-1/+5
|
* Updated Frewnch translationNick Clifton2006-05-242-1392/+1562
|
* Updated translationNick Clifton2006-05-232-1413/+1584
|
* * po/ru.po: Updated translation.Daniel Jacobowitz2006-05-222-1397/+1505
|
* Remove ChangeLog entries, since the template files were already up to date.Nick Clifton2006-05-221-4/+0
|
* Update translation templatesNick Clifton2006-05-221-0/+4
|
* * doc/Makefile.in: Regenerated.Andreas Schwab2006-05-191-0/+1
|
* * doc/Makefile.am (addr2line.1): Depend on $(binutils_TEXINFOS).Andreas Schwab2006-05-193-37/+55
| | | | | | | | | | | | | | | | | (ar.1): Likewise. (dlltool.1): Likewise. (nlmconv.1): Likewise. (nm.1): Likewise. (objcopy.1): Likewise. (objdump.1): Likewise. (ranlib.1): Likewise. (readelf.1): Likewise. (size.1): Likewise. (strings.1): Likewise. (strip.1): Likewise. (windres.1): Likewise. (cxxfilt.man): Likewise. * doc/Makefile.in: Regenerated.
* 2006-05-17 Carlos O'Donell <carlos@codesourcery.com>Carlos O'Donell2006-05-172-3/+7
| | | | * doc/binutils.texi: Use "Binutils Index" for index name.
* 2006-05-15 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2006-05-152-1/+6
| | | | | * dwarf.c (display_debug_frames): Don't return on ZERO terminator.
* 2006-05-03 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2006-05-032-1/+5
| | | | * binutils-all/copy-3.d: Fix a typo.
* 2006-05-03 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2006-05-033-0/+24
| | | | | | * binutils-all/copy-3.d: New. * objcopy.exp: Run copy-3.
* 2006-05-02 Dave Korn <dave.korn@artimi.com>Dave Korn2006-05-023-2/+7
| | | | | * binutils-all/copy-1.d (name): Correct spelling of 'setting'. * binutils-all/copy-2.d (name): Likewise.
* binutils/Daniel Jacobowitz2006-05-026-18/+31
| | | | | | | | | | | | | | | | | | | | * doc/Makefile.am (AM_MAKEINFOFLAGS): New. (TEXI2POD): Use AM_MAKEINFOFLAGS. (config.texi): Don't set top_srcdir. * doc/binutils.texi: Don't use top_srcdir. * aclocal.m4, Makefile.in, doc/Makefile.in: Regenerated. gas/ * doc/Makefile.am (AM_MAKEINFOFLAGS): New. (TEXI2POD): Use AM_MAKEINFOFLAGS. (asconfig.texi): Don't set top_srcdir. * doc/as.texinfo: Don't use top_srcdir. * aclocal.m4, Makefile.in, doc/Makefile.in: Regenerated. ld/ * Makefile.am (AM_MAKEINFOFLAGS): Add libiberty. (TEXI2POD): Use AM_MAKEINFOFLAGS. (configdoc.texi): Don't set top_srcdir. * ld.texinfo: Don't use top_srcdir. * aclocal.m4, Makefile.in: Regenerated.
* * binutils-all/copy-2.d: Change the name of the section whose flags areNick Clifton2006-05-023-4/+22
| | | | | | changed to "foo" so that the test will work with PE based targets. Skip this test for AOUT based targeted. * binutils-all/copytest.s: New file.
* 2006-05-01 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2006-05-012-1/+5
| | | | * binutils-all/objcopy.exp: Run "copy-1" for ELF only.
* * binutils-all/objcopy.exp (objcopy_test_readelf): Remove stray ;Ben Elliston2006-05-012-1/+5
|
* * readelf.c (arm_attr_tag_VFP_arch): Add VFPv3.Julian Brown2006-04-262-1/+6
|
* 2006-04-26 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2006-04-266-0/+547
| | | | | | | | | | | | | | | | PR binutils/2593 * binutils-all/copy-1.d: New file. * binutils-all/copy-1.s: Likewise. * binutils-all/copy-2.d: Likewise. * binutils-all/objcopy.exp: Add run_dump_test "copy-1" and run_dump_test "copy-2". * lib/utils-lib.exp (run_dump_test): New. (slurp_options): Likewise. (regexp_diff): Likewise. (file_contents): Likewise. (verbose_eval): Likewise.
* 2006-04-25 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2006-04-252-0/+12
| | | | | | PR binutils/2467 * binutils-all/objcopy.exp (strip_test): Also test "strip -g" on archive.
* * Makefile.am: Run "make dep-am".Alan Modra2006-04-193-2/+7
| | | | * Makefile.in: Regenerate.
* bfd/Alan Modra2006-04-192-2/+6
| | | | | | | | | | | | | | | | * warning.m4 (--enable-werror, -build-warnings): Format help messages. * configure: Regenerate. binutils/ * configure: Regenerate. gas/ * configure.in (--enable-targets): Indent help message. * configure: Regenerate. gprof/ * configure: Regenerate. ld/ * configure: Regenerate. opcodes/ * configure: Regenerate.
* PR 2257Nick Clifton2006-04-182-4/+25
| | | | | | | | * elfcode.h (elf_object_p): Allow files with corrupt e_shstrndx fields to still be handled as ELF files. * readelf.c (SECTION_NAME): Cope with a missing string table. (process_file_header): Cope with a corrupt e_shstrndx field. (process_section_headers): Correctly handle an e_shstrndx value of SHF_UNDEF.
* oops - omitted from commit of typo fixNick Clifton2006-04-121-0/+4
|
* Fix typoNick Clifton2006-04-121-1/+1
|
* 2006-04-10 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2006-04-102-0/+10
| | | | * lib/utils-lib.exp (default_binutils_run): Check exit status.
* * MAINTAINERS (CGEN Maintainers): Remove myself.Ben Elliston2006-04-102-1/+5
|
* 2006-04-06 Carlos O'Donell <carlos@codesourcery.com>Carlos O'Donell2006-04-068-2/+131
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Makefile.tpl: Add install-html target. * Makefile.def: Add install-html target. * Makefile.in: Regenerate. * configure.in: Add --with-datarootdir, --with-docdir, and --with-htmldir options. * configure: Regenerate. bfd/ 2006-04-06 Carlos O'Donell <carlos@codesourcery.com> * po/Make-in: Add install-html target. * Makefile.am: Rename docdir to bfddocdir. Add datarootdir, docdir htmldir. Add install-html and install-html-recursive targets. * Makefile.in: Regenerate. * configure.in: AC_SUBST for datarootdir, docdir and htmldir. * configure: Regenerate. bfd/doc/ 2006-04-06 Carlos O'Donell <carlos@codesourcery.com> * Makefile.am: Add install-html and install-html-am targets. Define datarootdir, docdir and htmldir. * Makefile.in: Regenerate. binutils/ 2006-04-06 Carlos O'Donell <carlos@codesourcery.com> * po/Make-in: Add install-html target. * Makefile.am: Add install-html and install-html-recursive targets. * Makefile.in: Regenerate. * configure.in: AC_SUBST datarootdir, docdir and htmldir. * configure: Regenerate. * doc/Makefile.am: Add install-html and install-html-am targets. * doc/Makefile.in: Regenerate. etc/ 2006-04-06 Carlos O'Donell <carlos@codesourcery.com> * Makefile.in: Add install-html target. Add htmldir, docdir and datarootdir. * configure.texi: Document install-html target. * configure.in: AC_SUBST datarootdir, docdir, htmldir. * configure: Regenerate. gas/ 2006-04-06 Carlos O'Donell <carlos@codesourcery.com> * po/Make-in: Add install-html target. * Makefile.am: Add install-html and install-html-recursive targets. * Makefile.in: Regenerate. * configure.in: AC_SUBST datarootdir, docdir, htmldir. * configure: Regenerate. * doc/Makefile.am: Add install-html and install-html-am targets. * doc/Makefile.in: Regenerate. gprof/ 2006-04-06 Carlos O'Donell <carlos@codesourcery.com> * po/Make-in: Add install-html target. * Makefile.am: Add install-html, install-html-am and install-html-recursive targets. * Makefile.in: Regenerate. * configure.in: AC_SUBST datarootdir, docdir, htmldir. * configure: Regenerate. intl/ 2006-04-06 Carlos O'Donell <carlos@codesourcery.com> * intl/Makefile.in: Add html info and dvi and install-html to .PHONY Add install-html target. ld/ 2006-04-06 Carlos O'Donell <carlos@codesourcery.com> * Makefile.am: Add install-html, install-html-am, and install-html-recursive targets. * Makefile.in: Regenerate. * configure.in: AC_SUBST datarootdir, docdir, htmldir. * configure: Regenerate. * po/Make-in: Add install-html target. opcodes/ 2006-04-06 Carlos O'Donell <carlos@codesourcery.com> * Makefile.am: Add install-html target. * Makefile.in: Regenerate.
* * addr2line.c (long_options): Add new option 'section'.Eric Botcazou2006-04-053-19/+80
| | | | | | | | | | | | | (usage): Document new -j/--section option. (find_offset_in_section): New function. (translate_addresses): Add 'section' parameter. If it is non-null, call find_offset_in_section on it. (process_file): Add 'section_name' parameter. If it is non-null, look for the section in the BFD object. Pass the section to translate_addresses. (main): Handle new -j option. Pass the section name to process_file. * doc/binutils.texi (addr2line): Document new -j/--section option.
* * resbin.c: Avoid duplicating constants in calls to reswr_alloc.Ben Elliston2006-03-292-21/+25
|
* * BRANCHES: Remove binutils-csl-arm-2006q1-branch. DocumentNathan Sidwell2006-03-202-2/+7
| | | | binutils-csl-2_17-branch instead.
* 2006-03-20 Paul Brook <paul@codesourcery.com>Paul Brook2006-03-192-2/+7
| | | | * BRANCHES: Mention binutils-csl-arm-2006q1-branch.
* PR 2434Alan Modra2006-03-163-6/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bfd/ * elflink.c (struct elf_smash_syms_data, elf_smash_syms): Delete. (elf_link_add_object_symbols): Delete unnecessary locals. Rename hash_table -> htab. Formatting. Save entire symbol table before loading as-needed syms, and restore afterwards if lib not needed. Use bfd_hash_allocate rather than bfd_alloc for sym name. Free some buffers earlier. * bfd-in.h (struct bfd_hash_table): Add entsize. (bfd_hash_table_init, bfd_hash_table_init_n): Adjust prototype. * elf-bfd.h (_bfd_elf_link_hash_table_init): Likewise * hash.c (bfd_hash_table_init_n): Add entsize param, save to hash table. (bfd_hash_table_init): Add param, adjust calls. * aoutx.h: Adjust all hash_table_init functions and calls. * bfd.c: Likewise. * coff-arm.c: Likewise. * coff-h8300.c: Likewise. * coff-ppc.c: Likewise. * cofflink.c: Likewise. * ecoff.c: Likewise. * ecofflink.c: Likewise. * elf-m10300.c: Likewise. * elf-strtab.c: Likewise. * elf.c: Likewise. * elf32-arm.c: Likewise. * elf32-bfin.c: Likewise. * elf32-cris.c: Likewise. * elf32-frv.c: Likewise. * elf32-hppa.c: Likewise. * elf32-i386.c: Likewise. * elf32-m32r.c: Likewise. * elf32-m68hc1x.c: Likewise. * elf32-m68k.c: Likewise. * elf32-ppc.c: Likewise. * elf32-s390.c: Likewise. * elf32-sh.c: Likewise. * elf32-vax.c: Likewise. * elf64-alpha.c: Likewise. * elf64-hppa.c: Likewise. * elf64-ppc.c: Likewise. * elf64-s390.c: Likewise. * elf64-sh64.c: Likewise. * elf64-x86-64.c: Likewise. * elfxx-ia64.c: Likewise. * elfxx-mips.c: Likewise. * elfxx-sparc.c: Likewise. * i386linux.c: Likewise. * libaout.h: Likewise. * libbfd-in.h: Likewise. * libcoff-in.h: Likewise. * linker.c: Likewise. * m68klinux.c: Likewise. * merge.c: Likewise. * opncls.c: Likewise. * pdp11.c: Likewise. * sparclinux.c: Likewise. * stabs.c: Likewise. * sunos.c: Likewise. * vms.c: Likewise. * xcofflink.c: Likewise. * section.c (struct section_hash_entry): Move to.. * libbfd-in.h: ..here. * Makefile.am: Run "make dep-am" * Makefile.in: Regenerate. * bfd-in2.h: Regenerate. * libbfd.h: Regenerate. * libcoff.h: Regenerate. binutils/ * ieee.c (write_ieee_debugging_info): Adjust bfd_hash_table_init calls. * wrstabs.c (write_stabs_in_sections_debugging_info): Likewise. ld/ * ldcref.c (add_cref): Adjust bfd_hash_table_init calls. * ldlang.c (output_statement_table_init, lang_init): Likewise. * ldmain.c (add_ysym, add_wrap, add_keepsyms_file): Likewise. (undefined_symbol): Likewise.
* * bucomm.c (display_target_list): Make local variable `a' to be ofBen Elliston2006-03-132-4/+10
| | | | | type enum bfd_architecture. Thus no need to cast enums to int. (display_info_table): Likewise.
OpenPOWER on IntegriCloud