aboutsummaryrefslogtreecommitdiff
path: root/binutils
AgeCommit message (Collapse)AuthorFilesLines
2005-06-142005-06-14 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu5-20/+165
PR 995 * ar.c (BUFSIZE): Moved to ... * bucomm.h (BUFSIZE): Here. * bucomm.c: Include <assert.h>. (bfd_get_archive_filename): New. * bucomm.h (bfd_get_archive_filename): New. * objcopy.c (copy_unknown_object): New. (copy_object): Use bfd_get_archive_filename when reporting input error. Don't call fatal on unknown arch. (copy_archive): Call copy_unknown_object on unknown format or arch.
2005-06-14 * readelf.c (cmalloc, xcmalloc, xcrealloc): New functions.Jakub Jelinek2-139/+323
(get_data): Add nmemb argument. Return NULL if nmemb * size overflows. If var == NULL, allocate one extra byte and clear it. (slurp_rela_relocs, slurp_rel_relocs, get_32bit_program_headers, get_64bit_program_headers, get_program_headers, get_32bit_section_headers, get_64bit_section_headers, get_32bit_elf_symbols, get_64bit_elf_symbols, process_section_headers, process_section_groups, process_relocs, slurp_ia64_unwind_table, ia64_process_unwind, slurp_hppa_unwind_table, hppa_process_unwind, get_32bit_dynamic_section, get_64bit_dynamic_section, process_dynamic_section, process_version_sections, get_dynamic_data, process_symbol_table, dump_section, load_debug_str, load_debug_loc, load_debug_range, read_and_display_attr_value, process_debug_info, get_debug_info, frame_need_space, display_debug_frames, display_debug_section, process_mips_specific, process_gnu_liblist, process_corefile_note_segment): Adjust get_data callers. Use cmalloc, xcmalloc and xcrealloc instead of {m,xm,xre}alloc where passed size is a product of 2 numbers. * readelf.c (print_mode): Fix comment typo. (slurp_rela_relocs, slurp_rel_relocs): Fix memory leaks. (dump_relocations): Fix a thinko in check for invalid st_name. (process_program_headers): Don't crash if string_table is NULL. (process_section_headers): Don't crash if e_shstrndx is invalid. Ensure string_table_length is 0 if string_table == NULL. Don't return just because string_table is NULL. (process_section_groups): Don't crash if symtab's sh_link or symbol's st_name is invalid. Fix a memory leak. Fix check for invalid section number entry. (process_relocs): Don't crash if relocation or symbol section's sh_link is invalid. (slurp_ia64_unwind_table, slurp_hppa_unwind_table): Don't crash if relocation section's sh_info is invalid. (ia64_process_unwind, hppa_process_unwind): Don't crash if symbol table's sh_link is invalid. (process_version_sections): Don't crash on version or symbol section's sh_link is invalid. Don't crash if symbol's st_shndx is invalid. (process_symbol_table): Don't crash if string table is corrupt or symbol's st_name, st_shndx, vna_name or vda_name is invalid. (debug_apply_rela_addends): Don't crash if relocation section's sh_info or sh_link is invalid. (display_debug_loc): Warn for unterminated .debug_loc section or start offsets not within .debug_loc section boundaries. (process_gnu_liblist): Don't crash if liblist section's sh_link or entry's l_name is invalid.
2005-06-09 * objdump.c (disassemble_bytes): Don't crash if q->howto == NULL.Jakub Jelinek2-13/+21
If q->howto->name == NULL, print q->howto->type as number instead. (dump_reloc_set): Likewise.
2005-06-072005-06-07 Eric Christopher <echristo@redhat.com>Eric Christopher2-0/+12
* Makefile.am (eelf32ms1.c): Use tab. * Makefile.in: Regenerate. 2005-06-07 Eric Christopher <echristo@redhat.com> * readelf.c (guess_is_rela): Support ms1. (dump_relocations): Ditto. (get_machine_name): Ditto.
2005-06-07 * Makefile.am (readelf.o): Depend on ms1.h.Aldy Hernandez4-0/+13
* Makefile.in: Regenerate. * readelf.c: Include ms1.h.
2005-06-06bfd/H.J. Lu2-3/+10
2005-06-06 H.J. Lu <hongjiu.lu@intel.com> PR 990 * bfd.c (bfd_find_line): New. * dwarf2.c (comp_unit): Add variable_table. (funcinfo): Add file, line, and sec. (varinfo): New. (lookup_symbol_in_function_table): New. (lookup_symbol_in_variable_table): New. (scan_unit_for_functions): Renamed to ... (scan_unit_for_symbols): This. Handle DW_TAG_entry_point and DW_TAG_variable. (comp_unit_find_nearest_line): Updated. (comp_unit_find_line): New. (_bfd_dwarf2_find_line): New. * elf-bfd.h (_bfd_elf_find_line): New. (_bfd_generic_find_line): New. Defined. * elf.c (_bfd_elf_find_line): New. * libbfd-in.h (_bfd_dwarf2_find_line): New. (_bfd_generic_find_line): New. * bfd-in2.h: Regenerated. * libbfd.h: Likewise. * libbfd.c (_bfd_generic_find_line): New. * targets.c (BFD_JUMP_TABLE_SYMBOLS): Initialize _bfd_find_line with _bfd_generic_find_line. (bfd_target): Add _bfd_find_line. binutils/ 2005-06-06 H.J. Lu <hongjiu.lu@intel.com> PR 990 * nm.c (print_symbol): Call bfd_find_line before bfd_find_nearest_line.
2005-06-06 * NEWS: Mention new powerpc ld support.Alan Modra2-3/+12
2005-06-03Patch from Steve Ellcey for hpux build failure.Jim Wilson5-70/+220
* configure.in: Check for getc_unlocked prototype. * configure: Regenerate. * config.in: Regenerate. * strings.c (get_char): Only call getc_unlocked if we have seen a prototype.
2005-06-03* configure.in (ALL_LINGUAS): Add zh_TWNick Clifton4-2/+5505
* configure: Regenerate. * po/zh_TW.po: New Chinese (traditional) translation.
2005-05-31 * readelf.c (dump_relocations): Special case R_ALPHA_LITUSE.Richard Henderson2-3/+30
2005-05-29 * readelf.c (get_alpha_dynamic_type): New.Richard Henderson2-0/+19
(get_dynamic_type): Call it.
2005-05-242005-05-24 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-4/+22
* readelf.c (process_section_groups): Report group section index. Check if the section member index is valid.
2005-05-23Approved by nickc@redhat.com:Fred Fish4-30/+67
2005-05-23 Fred Fish <fnf@specifixinc.com> * addr2line.c (unwind_inlines): New flag for 'i' option. (usage): Document '-i' option. (long_options): Recognize '--inlines'. (translate_addresses): Loop, calling bfd_find_inliner_info as necessary and printing multiple output lines. (main): Handle 'i' option. * doc/binutils.texi (addr2line): Document '-i' option. * NEWS: Mention new addr2line '-i' option.
2005-05-23(fetch_indirect_string): Display a warning message when a corruptNick Clifton2-4/+17
DW_FORM_strp value is encountered. (process_debug_info): Mention that the compilation unit offset is being displayed in hexadecimal. (display_debug_lines): Fix typo in name of .debug_line section.
2005-05-19 * bfd/Makefile.am, binutils/Makefile.am, etc/Makefile.inZack Weinberg3-1/+8
* gas/Makefile.am: Have 'all' depend on 'info'. * ld/Makefile.am: Have 'all' depend on 'info' and 'ld.1'. * bfd/Makefile.in, binutils/Makefile.in, gas/Makefile.in * ld/Makefile.in: Regenerate.
2005-05-18binutils/ChangeLogBen Elliston2-0/+7
* readelf.c (read_and_display_attr_value): Handle a DW_AT_encoding value of DW_ATE_GNU_decimal_float. include/elf/ChangeLog * dwarf2.h (enum dwarf_type): Assign DW_ATE_GNU_decimal_float from the user-defined encoding space pending inclusion in the standard.
2005-05-17binutils/Daniel Jacobowitz3-2/+9
* doc/Makefile.am (config.texi): Don't use $<. * doc/Makefile.in: Regenerated. ld/ * Makefile.am (ldver.texi): Don't use $<. * Makefile.in: Regenerated. gas/ * doc/Makefile.am (gasver.texi): Don't use $<. * doc/Makefile.in: Regenerated.
2005-05-17Ignore CRsNick Clifton2-0/+5
2005-05-15./Daniel Jacobowitz9-4581/+11058
* ylwrap: Import from Automake 1.9.5. binutils/ * acinclude.m4: Remove obsolete code. * configure.in: Update AC_PREREQ. * doc/Makefile.am (binutils_TEXINFOS): Define. (config.texi): Depend on distributed files instead of built files. (binutils.dvi, binutils.info): Remove unnecessary rules. (DISTCLEANFILES): Remove. (install-data-local): Renamed from install. (info-local): Renamed from info. * Makefile.in, aclocal.m4, config.in, configure, doc/Makefile.in: Regenerated. gas/ * Makefile.am (m68k-parse.c, itbl-parse.c): Update ylwrap invocation. * Makefile.in: Regenerated. ld/ * Makefile.am (AM_MAKEINFOFLAGS): Define. (TEXI2DVI): Define. (ldver.texi): Depend on distributed files instead of built files. (ld.info): Include $(srcdir) in the rule target. Remove actions. (ld.dvi): Remove actions. (MAINTAINERCLEANFILES): Add configdoc.texi. (CONFIG_STATUS_DEPENDENCIES): Add bfd/configure.in. (install-data-local): Renamed from install. (Makefile): Remove explicit dependency. * acinclude.m4: Remove obsolete code. * configure.in: Update AC_PREREQ. Remove extra $CONFIG_SHELL. * Makefile.in, aclocal.m4, config.in, configure: Regenerated. gdb/ * Makefile.in (.y.c): Update ylwrap invocation.
2005-05-14include/elf/Alan Modra2-1/+6
* ppc.h (DT_PPC_GOT): Rename from DT_PPC_GLINK. bfd/ * elf32-ppc.c (ppc_elf_size_dynamic_sections): Set DT_PPC_GOT, not DT_PPC_GLINK. (ppc_elf_finish_dynamic_sections): Likewise. binutils/ * readelf.c (get_ppc_dynamic_type): Display DT_PPC_GOT, not DT_PPC_GLINK.
2005-05-14 2005-05-13 Fred Fish <fnf@specifixinc.com>Fred Fish2-2/+7
* readelf.c: Fix a couple of obvious comment typos, 'debug_str' -> 'debug_ranges' and proecess' -> 'process'.
2005-05-132005-05-13 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-1/+5
* readelf.c (dump_ia64_unwind): Get stamp with proper size.
2005-05-12Add missing \n character to end of warning message created by the previous deltaNick Clifton1-1/+1
2005-05-12If pointer_size has not been found then assume that it is 4 in order toNick Clifton2-4/+18
prevent a seg fault when process_extend_line_op attempts to read the line data.
2005-05-11 * readelf.c (get_ppc_dynamic_type): New function for DT_PPC_GLINK.Alan Modra2-4/+23
(get_dynamic_type): Call the above.
2005-05-08Update FSF addressNick Clifton78-111/+139
2005-05-06binutils/Jan Beulich2-7/+9
2005-05-06 Jan Beulich <jbeulich@novell.com> * objcopy.c (copy_file): Don't delete output upon error here. (copy_main): Delete output upon error.
2005-05-02 * dlltool.c (dtab): Remove empty function.Ben Elliston2-25/+5
(process_duplicates): Remove calls to dtab().
2005-05-01* doc/binutils.texi (strip, objcopy): Clarify the description ofMaciej W. Rozycki2-3/+9
the "--strip-debug" option. Fix a typo.
2005-04-292005-04-29 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu3-1/+8
* bucomm.c: Undo the last change. * bucomm.h: Likewise.
2005-04-29* more static'ing.Ben Elliston7-45/+37
* syslex.l (word, number, unit): Remove unused variables. * nlmheader.y (keyword_tokens): Make static. * coffdump.c (dump_coff_symbol, coff_dump): Make static. * coffgrok.c (lofile, last_function_symbol, last_function_type, last_struct, last_enum, cur_sfile): Make variables static. * sysdump.c (getCHARS, fillup, getBARRAY, getINT, getBITS, sysroff_swap_tr_in, sysroff_print_tr_out): Make static. * sysinfo.y (writecode, it, code, repeat, oldrepeat, name, rdepth, names, pnames): Likewise.
2005-04-29 * ar.c (mri_mode): Make static.Ben Elliston12-124/+96
* arsup.c (obfd, real_name, outfile): Likewise. * binemul.c (ar_emul_create): Remove unused function. (ar_emul_default_create): Likewise. * binemul.h (ar_emul_create): Remove declaration. (ar_emul_default_create): Likewise. (struct bin_emulation_xfer_struct): Remove ar_create member. * bucomm.c (report): Make static. * bucomm.h (report): Remove declaration. * cxxfilt.c (mbuffer): Make static. (main): Use unsigned ints for some loop control variables. * readelf.c: Make many global variables static. * size.c (berkeley_format): Make static. (long_options): Likewise. * emul_aix.c (bin_aix_emulation): Remove ar_emul_default_create structure initialiser. (bin_aix5_emulation): Likewise. * emul_vanilla.c (bin_vanilla_emulation): Likewise.
2005-04-27 * syslex.l: Adjust top-of-file comment: this file is part of GNUBen Elliston2-3/+8
binutils, not GNU ld.
2005-04-25PR872Nick Clifton2-0/+6
* objcopy.c (copy_archive): Initialise 'obfd' field of new name_list structure.
2005-04-25Oops - forgot one place where -K is documented.Nick Clifton1-1/+1
2005-04-25* objcopy.c (copy_usage): Fix description of -K switch.Nick Clifton3-5/+11
* doc/binutils.texi (strip, objcopy): Fix description of -K switch.
2005-04-20 * readelf.c (display_debug_frames): Use data factor forDaniel Jacobowitz2-0/+7
DW_CFA_def_cfa_sf and DW_CFA_def_cfa_offset_sf.
2005-04-192005-04-19 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-0/+9
* objdump.c (dump_section_header): Skip linker created section.
2005-04-172005-04-17 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-0/+5
* objdump.c (dump_section_header): Support SEC_GROUP.
2005-04-16(debug_apply_rela_addends): Remove redundant %s from printf string.Nick Clifton2-1/+6
2005-04-15Issue an error message when attmepting to copy an empty input file.Nick Clifton2-0/+6
2005-04-14bfd/Alan Modra6-231/+253
* Makefile.am (NO_WERROR): Define. * warning.m4: New file * acinclude.m4: Include warning.m4. * configure.in: Invoke AM_BINUTILS_WARNINGS. * Makefile.in: Regenerate. * configure: Regenerate. bfd/doc/ * Makefile.in: Regenerate. binutils/ * Makefile.am (NO_WERROR): Define. Use instead of -Wno-error. * configure.in: Include ../bfd/warning.m4 contents. * Makefile.in: Regenerate. * configure: Regenerate. * doc/Makefile.in: Regenerate. gas/ * Makefile.am (NO_WERROR): Define. Use instead of -Wno-error. * acinclude.m4: Include ../bfd/warning.m4. * configure.in: Invoke AM_BINUTILS_WARNINGS. * Makefile.in: Regenerate. * configure: Regenerate. * doc/Makefile.in: Regenerate. gprof/ * Makefile.am (NO_WERROR): Define. * acinclude.m4: Include ../bfd/warning.m4. * configure.in: Invoke AM_BINUTILS_WARNINGS. * Makefile.in: Regenerate. * aclocal.m4: Regenerate. * configure: Regenerate. ld/ * Makefile.am (NO_WERROR): Define. Use instead of -Wno-error. * configure.in: Include ../bfd/warning.m4 contents. * Makefile.in: Regenerate. * configure: Regenerate. opcodes/ * Makefile.am (NO_WERROR): Define. * configure.in: Invoke AM_BINUTILS_WARNINGS. * Makefile.in: Regenerate. * aclocal.m4: Regenerate. * configure: Regenerate.
2005-04-12bfd/Alan Modra6-477/+562
* Makefile.am: Run "make dep-am". * Makefile.in: Regenerate. * aclocal.m4: Regenerate. * libcoff.h: Regenerate. bfd/doc/ * Makefile.in: Regenerate. binutils/ * Makefile.am: Run "make dep-am". (syslex.o, sysinfo.o, arparse.o, arlex.o): Add -Wno-error to command. (sysroff.o, defparse.o, deflex.o): Likewise. (nlmheader.o, rcparse.o, rclex.o): Likewise. * Makefile.in: Regenerate. * aclocal.m4: Regenerate. * config.in: Regenerate. * configure: Regenerate. gas/ * Makefile.am: Run "make dep-am". * Makefile.in: Regenerate. ld/ * Makefile.am: Run "make dep-am". (ldgram.o, ldlex.o, deffilep.o): Add -Wno-error to command. * Makefile.in: Regenerate. * config.in: Regenerate.
2005-04-11binutils/Jan Beulich2-0/+5
2005-04-11 Jan Beulich <jbeulich@novell.com> * MAINTAINERS: Add myself as ix86 Intel mode maintainer.
2005-04-062005-04-06 Nick Clifton <nickc@redhat.com>H.J. Lu3-118/+138
H.J. Lu <hongjiu.lu@intel.com> * po/rw.po: New translation: Kinyarwanda. * configure.in (ALL_LINGUAS): Add rw. * configure: Regenerate.
2005-04-05New translation: KinyarwandaNick Clifton2-469/+5430
2005-04-04Condense the two tests into one and add a "-M entry:" for the second label.Nick Clifton2-23/+10
2005-04-04* readelf.c (debug_apply_rela_addends): Reorder r_info asMaciej W. Rozycki2-0/+17
necessary for 64-bit MIPS.
2005-04-04* doc/binutils.texi (readelf): Remove a duplicate paragraph.Maciej W. Rozycki2-6/+4
2005-04-04Add a check to see if the section for the symbol is chosen usingNick Clifton2-2/+10
process_section_p.