summaryrefslogtreecommitdiff
path: root/binutils
Commit message (Collapse)AuthorAgeFilesLines
* * Makefile.am (check-DEJAGNU): Don't search for expect.Ben Elliston2005-06-303-8/+5
| | | | * Makefile.in: Regenerate.
* * Makefile.am (EXPECT): Set to expect.Ben Elliston2005-06-293-14/+10
| | | | | (RUNTEST): Likewise, set to runtest. * Makefile.in: Regenerate.
* * elf/external.h (GRP_ENTRY_SIZE): Define.Jakub Jelinek2005-06-172-1/+39
| | | | | | | | | * readelf.c (CHECK_ENTSIZE_VALUES, CHECK_ENTSIZE): Define. (process_section_headers): Use it. (process_relocs): Don't crash if symsec is not SHT_SYMTAB or SHT_DYNSYM. (process_version_sections): Use sizeof (Elf_External_Versym) instead of sh_entsize.
* rename.c (simple_copy): Only define if it is going to be used.Nick Clifton2005-06-163-2/+13
| | | | | | | (smart_rename): Mark the preserve_dates parameter as possibly being unused. resres.c (write_res_data): Prevent a potential compile time warning by casting the return value from fwrite.
* 2005-06-14 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2005-06-145-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.
* * readelf.c (cmalloc, xcmalloc, xcrealloc): New functions.Jakub Jelinek2005-06-142-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.
* * objdump.c (disassemble_bytes): Don't crash if q->howto == NULL.Jakub Jelinek2005-06-092-13/+21
| | | | | If q->howto->name == NULL, print q->howto->type as number instead. (dump_reloc_set): Likewise.
* 2005-06-07 Eric Christopher <echristo@redhat.com>Eric Christopher2005-06-072-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.
* * Makefile.am (readelf.o): Depend on ms1.h.Aldy Hernandez2005-06-074-0/+13
| | | | | | * Makefile.in: Regenerate. * readelf.c: Include ms1.h.
* bfd/H.J. Lu2005-06-062-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.
* * NEWS: Mention new powerpc ld support.Alan Modra2005-06-062-3/+12
|
* Patch from Steve Ellcey for hpux build failure.Jim Wilson2005-06-035-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.
* * configure.in (ALL_LINGUAS): Add zh_TWNick Clifton2005-06-034-2/+5505
| | | | | * configure: Regenerate. * po/zh_TW.po: New Chinese (traditional) translation.
* * readelf.c (dump_relocations): Special case R_ALPHA_LITUSE.Richard Henderson2005-05-312-3/+30
|
* * readelf.c (get_alpha_dynamic_type): New.Richard Henderson2005-05-292-0/+19
| | | | (get_dynamic_type): Call it.
* 2005-05-24 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2005-05-242-4/+22
| | | | | * readelf.c (process_section_groups): Report group section index. Check if the section member index is valid.
* Approved by nickc@redhat.com:Fred Fish2005-05-234-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.
* (fetch_indirect_string): Display a warning message when a corruptNick Clifton2005-05-232-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.
* * bfd/Makefile.am, binutils/Makefile.am, etc/Makefile.inZack Weinberg2005-05-193-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.
* binutils/ChangeLogBen Elliston2005-05-182-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.
* binutils/Daniel Jacobowitz2005-05-173-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.
* Ignore CRsNick Clifton2005-05-172-0/+5
|
* ./Daniel Jacobowitz2005-05-159-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.
* include/elf/Alan Modra2005-05-142-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-13 Fred Fish <fnf@specifixinc.com>Fred Fish2005-05-142-2/+7
| | | | | * readelf.c: Fix a couple of obvious comment typos, 'debug_str' -> 'debug_ranges' and proecess' -> 'process'.
* 2005-05-13 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2005-05-132-1/+5
| | | | * readelf.c (dump_ia64_unwind): Get stamp with proper size.
* Add missing \n character to end of warning message created by the previous deltaNick Clifton2005-05-121-1/+1
|
* If pointer_size has not been found then assume that it is 4 in order toNick Clifton2005-05-122-4/+18
| | | | | prevent a seg fault when process_extend_line_op attempts to read the line data.
* * readelf.c (get_ppc_dynamic_type): New function for DT_PPC_GLINK.Alan Modra2005-05-112-4/+23
| | | | (get_dynamic_type): Call the above.
* Update FSF addressNick Clifton2005-05-0878-111/+139
|
* binutils/Jan Beulich2005-05-062-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.
* * dlltool.c (dtab): Remove empty function.Ben Elliston2005-05-022-25/+5
| | | | (process_duplicates): Remove calls to dtab().
* * doc/binutils.texi (strip, objcopy): Clarify the description ofMaciej W. Rozycki2005-05-012-3/+9
| | | | the "--strip-debug" option. Fix a typo.
* 2005-04-29 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2005-04-293-1/+8
| | | | | * bucomm.c: Undo the last change. * bucomm.h: Likewise.
* * more static'ing.Ben Elliston2005-04-297-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.
* * ar.c (mri_mode): Make static.Ben Elliston2005-04-2912-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.
* * syslex.l: Adjust top-of-file comment: this file is part of GNUBen Elliston2005-04-272-3/+8
| | | | binutils, not GNU ld.
* PR872Nick Clifton2005-04-252-0/+6
| | | | * objcopy.c (copy_archive): Initialise 'obfd' field of new name_list structure.
* Oops - forgot one place where -K is documented.Nick Clifton2005-04-251-1/+1
|
* * objcopy.c (copy_usage): Fix description of -K switch.Nick Clifton2005-04-253-5/+11
| | | | * doc/binutils.texi (strip, objcopy): Fix description of -K switch.
* * readelf.c (display_debug_frames): Use data factor forDaniel Jacobowitz2005-04-202-0/+7
| | | | DW_CFA_def_cfa_sf and DW_CFA_def_cfa_offset_sf.
* 2005-04-19 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2005-04-192-0/+9
| | | | * objdump.c (dump_section_header): Skip linker created section.
* 2005-04-17 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2005-04-172-0/+5
| | | | * objdump.c (dump_section_header): Support SEC_GROUP.
* (debug_apply_rela_addends): Remove redundant %s from printf string.Nick Clifton2005-04-162-1/+6
|
* Issue an error message when attmepting to copy an empty input file.Nick Clifton2005-04-152-0/+6
|
* bfd/Alan Modra2005-04-146-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.
* bfd/Alan Modra2005-04-126-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.
* binutils/Jan Beulich2005-04-112-0/+5
| | | | | | 2005-04-11 Jan Beulich <jbeulich@novell.com> * MAINTAINERS: Add myself as ix86 Intel mode maintainer.
* 2005-04-06 Nick Clifton <nickc@redhat.com>H.J. Lu2005-04-063-118/+138
| | | | | | | | H.J. Lu <hongjiu.lu@intel.com> * po/rw.po: New translation: Kinyarwanda. * configure.in (ALL_LINGUAS): Add rw. * configure: Regenerate.
* New translation: KinyarwandaNick Clifton2005-04-052-469/+5430
|