H.J. Lu
77f762d6e4
2005-06-14 H.J. Lu <hongjiu.lu@intel.com>
...
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 13:26:42 +00:00
Jakub Jelinek
c256ffe730
* readelf.c (cmalloc, xcmalloc, xcrealloc): New functions.
...
(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-14 11:06:28 +00:00
Jakub Jelinek
f9ecb0a440
* objdump.c (disassemble_bytes): Don't crash if q->howto == NULL.
...
If q->howto->name == NULL, print q->howto->type as number instead.
(dump_reloc_set): Likewise.
2005-06-09 14:51:41 +00:00
Eric Christopher
a34e3ecb69
2005-06-07 Eric Christopher <echristo@redhat.com>
...
* 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 23:56:50 +00:00
Aldy Hernandez
1ae72221f9
* Makefile.am (readelf.o): Depend on ms1.h.
...
* Makefile.in: Regenerate.
* readelf.c: Include ms1.h.
2005-06-07 21:14:09 +00:00
H.J. Lu
5420f73dbb
bfd/
...
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 14:28:31 +00:00
Alan Modra
b12fe8393a
* NEWS: Mention new powerpc ld support.
2005-06-06 06:53:07 +00:00
Jim Wilson
b7d4af3a12
Patch from Steve Ellcey for hpux build failure.
...
* 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 21:33:49 +00:00
Nick Clifton
82d457f64b
* configure.in (ALL_LINGUAS): Add zh_TW
...
* configure: Regenerate.
* po/zh_TW.po: New Chinese (traditional) translation.
2005-06-03 13:22:15 +00:00
Richard Henderson
7ace3541ba
* readelf.c (dump_relocations): Special case R_ALPHA_LITUSE.
2005-05-31 22:52:50 +00:00
Richard Henderson
fabcb3612f
* readelf.c (get_alpha_dynamic_type): New.
...
(get_dynamic_type): Call it.
2005-05-29 23:18:51 +00:00
H.J. Lu
391cb864cf
2005-05-24 H.J. Lu <hongjiu.lu@intel.com>
...
* readelf.c (process_section_groups): Report group section
index. Check if the section member index is valid.
2005-05-24 13:53:30 +00:00
Fred Fish
0c552dc188
Approved by nickc@redhat.com:
...
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 17:45:42 +00:00
Nick Clifton
41a865baa2
(fetch_indirect_string): Display a warning message when a corrupt
...
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-23 12:12:00 +00:00
Zack Weinberg
e3e71e27a4
* bfd/Makefile.am, binutils/Makefile.am, etc/Makefile.in
...
* 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-19 23:49:52 +00:00
Ben Elliston
d68f40330b
binutils/ChangeLog
...
* 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-18 22:42:09 +00:00
Daniel Jacobowitz
970c3dbce8
binutils/
...
* 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-17 19:43:52 +00:00
Nick Clifton
39ddb54e58
Ignore CRs
2005-05-17 16:08:54 +00:00
Daniel Jacobowitz
42ecbf5eda
./
...
* 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-15 18:19:45 +00:00
Alan Modra
1fe44d7986
include/elf/
...
* 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 05:07:20 +00:00
Fred Fish
f59f7c79ed
2005-05-13 Fred Fish <fnf@specifixinc.com>
...
* readelf.c: Fix a couple of obvious comment typos,
'debug_str' -> 'debug_ranges' and proecess' -> 'process'.
2005-05-14 01:38:14 +00:00
H.J. Lu
a4a0073871
2005-05-13 H.J. Lu <hongjiu.lu@intel.com>
...
* readelf.c (dump_ia64_unwind): Get stamp with proper size.
2005-05-13 18:35:55 +00:00
Nick Clifton
1ec742ac5e
Add missing \n character to end of warning message created by the previous delta
2005-05-12 14:09:23 +00:00
Nick Clifton
52d1fb02ab
If pointer_size has not been found then assume that it is 4 in order to
...
prevent a seg fault when process_extend_line_op attempts to read the line
data.
2005-05-12 09:05:36 +00:00
Alan Modra
7490d522be
* readelf.c (get_ppc_dynamic_type): New function for DT_PPC_GLINK.
...
(get_dynamic_type): Call the above.
2005-05-11 14:10:59 +00:00
Nick Clifton
b43b5d5f76
Update FSF address
2005-05-08 14:17:41 +00:00
Jan Beulich
a580b8e051
binutils/
...
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-06 06:32:43 +00:00
Ben Elliston
27eed06bc2
* dlltool.c (dtab): Remove empty function.
...
(process_duplicates): Remove calls to dtab().
2005-05-02 23:41:39 +00:00
Maciej W. Rozycki
36d3b95500
* doc/binutils.texi (strip, objcopy): Clarify the description of
...
the "--strip-debug" option. Fix a typo.
2005-05-01 16:02:56 +00:00
H.J. Lu
cba1200696
2005-04-29 H.J. Lu <hongjiu.lu@intel.com>
...
* bucomm.c: Undo the last change.
* bucomm.h: Likewise.
2005-04-29 16:49:20 +00:00
Ben Elliston
89b788963f
* more static'ing.
...
* 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 01:15:21 +00:00
Ben Elliston
85b1c36d31
* ar.c (mri_mode): Make static.
...
* 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-29 00:03:33 +00:00
Ben Elliston
943ea8a2b0
* syslex.l: Adjust top-of-file comment: this file is part of GNU
...
binutils, not GNU ld.
2005-04-27 01:29:58 +00:00
Nick Clifton
bee59fd28b
PR872
...
* objcopy.c (copy_archive): Initialise 'obfd' field of new name_list structure.
2005-04-25 14:27:00 +00:00
Nick Clifton
5219e4c0b4
Oops - forgot one place where -K is documented.
2005-04-25 09:25:57 +00:00
Nick Clifton
e7f918adb6
* objcopy.c (copy_usage): Fix description of -K switch.
...
* doc/binutils.texi (strip, objcopy): Fix description of -K switch.
2005-04-25 09:23:24 +00:00
Daniel Jacobowitz
ae67fcb5e7
* readelf.c (display_debug_frames): Use data factor for
...
DW_CFA_def_cfa_sf and DW_CFA_def_cfa_offset_sf.
2005-04-20 18:43:16 +00:00
H.J. Lu
3bee8bcdbf
2005-04-19 H.J. Lu <hongjiu.lu@intel.com>
...
* objdump.c (dump_section_header): Skip linker created section.
2005-04-19 21:29:46 +00:00
H.J. Lu
64c1196b58
2005-04-17 H.J. Lu <hongjiu.lu@intel.com>
...
* objdump.c (dump_section_header): Support SEC_GROUP.
2005-04-17 14:33:06 +00:00
Nick Clifton
520494b6f8
(debug_apply_rela_addends): Remove redundant %s from printf string.
2005-04-16 07:43:56 +00:00
Nick Clifton
ac559f4a6d
Issue an error message when attmepting to copy an empty input file.
2005-04-15 16:28:52 +00:00
Alan Modra
9e9b66a956
bfd/
...
* 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-14 05:26:44 +00:00
Alan Modra
ceae3e339f
bfd/
...
* 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-12 02:50:28 +00:00
Jan Beulich
53260797e5
binutils/
...
2005-04-11 Jan Beulich <jbeulich@novell.com>
* MAINTAINERS: Add myself as ix86 Intel mode maintainer.
2005-04-11 15:16:22 +00:00
H.J. Lu
52f3cf45e3
2005-04-06 Nick Clifton <nickc@redhat.com>
...
H.J. Lu <hongjiu.lu@intel.com>
* po/rw.po: New translation: Kinyarwanda.
* configure.in (ALL_LINGUAS): Add rw.
* configure: Regenerate.
2005-04-06 14:45:54 +00:00
Nick Clifton
429cc0ae05
New translation: Kinyarwanda
2005-04-05 07:58:41 +00:00
Nick Clifton
ae99769bfc
Condense the two tests into one and add a "-M entry:" for the second label.
2005-04-04 17:20:29 +00:00
Maciej W. Rozycki
a8b683fc5e
* readelf.c (debug_apply_rela_addends): Reorder r_info as
...
necessary for 64-bit MIPS.
2005-04-04 15:07:18 +00:00
Maciej W. Rozycki
470e4bd1c2
* doc/binutils.texi (readelf): Remove a duplicate paragraph.
2005-04-04 14:56:12 +00:00
Nick Clifton
661f7c357e
Add a check to see if the section for the symbol is chosen using
...
process_section_p.
2005-04-04 10:32:28 +00:00