Mark Mitchell
07012eeef2
* addr2line.c (usage): Document @file.
...
* ar.c (usage): Likewise.
* coffdump (usage): Likewise.
* cxxfilt.c (usage): Likewise.
* dlltool.c (usage): Likewise.
* dllwrap.c (usage): Likewise.
* nlmconv.c (usage): Likewise.
* nm.c (usage): Likewise.
* objcopy.c (usage): Likewise.
* objdump.c (usage): Likewise.
* readelf.c (usage): Likewise.
* size.c (usage): Likeise.
* srconv.c (usage): Likewise.
* strings.c (usage): Likewise.
* windres.c (usage): Likewise.
* doc/binutils.texi: Add section on common options.
2005-10-03 19:37:44 +00:00
Mark Mitchell
869b9d07bb
* addr2line.c (main): Likewise.
...
* ar.c (main): Likewise.
* coffdump.c (main): Likewise.
* cxxfilt.c (main): Likewise.
* dlltool.c (main): Likewise.
* dllwrap.c (main): Likewise.
* nlmconv.c (main): Likewise.
* nm.c (main): Likewise.
* objcopy.c (main): Likewise.
* objdump.c (main): Likewise.
* readelf.c (main): Likewise.
* size.c (main): Likeiwse.
* srcconv.c (main): Likewise.
* strings.c (main): Likewise.
* sysdump.c (main): Likewise.
* sysinfo.c (main): Likewise.
* windres.c (main): Likewise.
* ldmain.c (main): Use expandargv.
* gprof.c (main): Use expandargv.
* as.c (main): Use expandargv.
2005-09-30 16:37:32 +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
Nick Clifton
b43b5d5f76
Update FSF address
2005-05-08 14:17:41 +00:00
Alan Modra
8615f3f213
bfd/
...
* elf.c (_bfd_elf_get_dynamic_reloc_upper_bound): Only include
loadable reloc sections.
(_bfd_elf_canonicalize_dynamic_reloc): Likewise.
(_bfd_elf_get_synthetic_symtab): Return 0 if no dynamic syms.
binutils/
* nm.c (display_rel_file): Read dynamic syms before calling
bfd_get_synthetic_symtab.
2005-01-25 10:33:55 +00:00
Nick Clifton
61bbd35b9f
(usage): Fix description of --special-syms switch.
2004-10-14 09:36:54 +00:00
Nick Clifton
3c9458e953
Implement a new BFD API function: bfd_is_target_special_symbol. Use this in nm
...
and objdump to skip the displaying of ARM Mapping symbols unless specifically
requested.
2004-10-08 14:54:04 +00:00
Nick Clifton
382c11163c
Reoder functions to eliminate most of the static function prototypes.
2004-09-28 16:26:39 +00:00
Alan Modra
0873df2aec
* nm.c (show_synthetic): New var.
...
(long_options): Add "synthetic".
(usage): Here too.
(display_rel_file): Handle show_synthetic.
2004-08-28 08:55:47 +00:00
Nick Clifton
f24ddbddc5
Use consistent error messages for missing files.
...
Detect directories where an ordinary file is expected.
2003-11-07 12:19:34 +00:00
Kazu Hirata
50c2245bd8
* ChangeLog: Fix typos.
...
* ChangeLog-9197: Likewise.
* ChangeLog-9899: Likewise.
* NEWS: Likewise.
* ar.c: Fix comment typos.
* arsup.c: Likewise.
* coffgrok.c: Likewise.
* debug.c: Likewise.
* debug.h: Likewise.
* dlltool.c: Likewise.
* ieee.c: Likewise.
* nm.c: Likewise.
* objdump.c: Likewise.
* prdbg.c: Likewise.
* readelf.c: Likewise.
* resrc.c: Likewise.
* sysinfo.y: Likewise.
* windres.c: Likewise.
2003-10-27 13:20:32 +00:00
Andreas Jaeger
2da42df615
* addr2line.c: Convert to ISO C90 prototypes, change PTR, remove
...
unneeded (void *) casts.
* ar.c: Likewise.
* arlex.l: Likewise.
* arparse.y: Likewise.
* arsup.c: Likewise.
* binemul.c: Likewise.
* binemul.h: Likewise.
* bucomm.c: Likewise.
* bucomm.h: Likewise.
* budbg.h: Likewise.
* budemang.c: Likewise.
* budemang.h: Likewise.
* coffdump.c: Likewise.
* coffgrok.c: Likewise.
* cxxfilt.c: Likewise.
* debug.c: Likewise.
* debug.h: Likewise.
* deflex.l: Likewise.
* dlltool.c: Likewise.
* dlltool.h: Likewise.
* dllwrap.c: Likewise.
* emul_aix.c: Likewise.
* filemode.c: Likewise.
* ieee.c: Likewise.
* nlmconv.c: Likewise.
* nlmconv.h: Likewise.
* nlmheader.y: Likewise.
* nm.c: Likewise.
* prdbg.c: Likewise.
* rclex.l: Likewise.
* rcparse.y: Likewise.
* rdcoff.c: Likewise.
* rddbg.c: Likewise.
* rename.c: Likewise.
* resbin.c: Likewise.
* rescoff.c: Likewise.
* resrc.c: Likewise.
* size.c: Likewise.
* srconv.c: Likewise.
* stabs.c: Likewise.
* strings.c: Likewise.
* sysdump.c: Likewise.
* sysinfo.y: Likewise.
* syslex.l: Likewise.
* unwind-ia64.c: Likewise.
* unwind-ia64.h: Likewise.
* version.c: Likewise.
* windres.c: Likewise.
* windres.h: Likewise.
* winduni.c: Likewise.
* wrstabs.c: Likewise.
2003-09-14 12:20:17 +00:00
Nick Clifton
06a30c77e0
nm.c (print_symbol_info_bsd): Print the symbol's size instead of the symbol's
...
value when --size-sort is used, unless -S is used.
doc/binutils.texi (--size-sort): For non-bsd formats both the value and size
of the symbols are displayed.
2003-03-17 10:14:07 +00:00
Nick Clifton
e3b83c8f4d
(print_symbol): Remove check for undefined_only.
...
(main): Print a warning message if --size-sort and --undefined-only are used
together.
2003-03-04 16:23:46 +00:00
Nick Clifton
f0c8c24a69
Fix help messages about demangling styles
2003-02-13 09:53:07 +00:00
Alan Modra
b34976b65a
s/boolean/bfd_boolean/ s/true/TRUE/ s/false/FALSE/. Simplify
...
comparisons of bfd_boolean vars with TRUE/FALSE. Formatting.
2002-11-30 08:39:46 +00:00
Alan Modra
68a4c07345
Revert last change.
2002-08-26 23:15:48 +00:00
Alan Modra
a1df01d1e4
* nm.c (display_rel_file): Don't report "no symbols" as an error.
...
* objdump.c (slurp_symtab): Likewise.
(slurp_dynamic_symtab): Likewise.
(dump_symbols): Likewise. Do print "no symbols" to stdout.
2002-08-26 10:14:15 +00:00
Nick Clifton
b5e2a4f34a
Replace 'gnu-new-abi' with 'gnu-v3'
2002-08-14 15:12:07 +00:00
Alan Modra
a6637ec0ed
* budemang.c: New file, "demangle" function.
...
* budemang.h: New file.
* addr2line.c (translate_addresses): Use "demangle".
* nm.c (print_symname): Likewise.
* objdump.c (objdump_print_symname): Likewise.
(dump_symbols): Likewise. Also, don't use bfd_asymbol_name macro
here since that obfuscates.
* rdcoff.c: Don't #include demangle.h.
* Makefile.am (CFILES): Add budemang.c, emul_aix.c,
emul_vanilla.c. Remove emul_$(EMULATION).c. Sort.
(HFILES): Add budemang.h. Sort.
(nm_new_SOURCES, objdump_SOURCES, addr2line_SOURCES): Add budemang.c.
Run "make dep-am".
* Makefile.in: Regenerate.
* po/POTFILES.in: Regenerate.
2002-07-02 04:21:25 +00:00
Alan Modra
eb3f2f5cfd
* nm.c (print_symname): When demangling, strip leading dots from
...
symbol names to avoid confusing the demangler.
2002-06-26 13:23:45 +00:00
Alan Modra
9710509e6b
* configure.in: Check for strcoll.
...
* configure: Regenerate.
* config.in: Regenerate.
* nm.c (main): Set locale for LC_COLLATE category.
(non_numeric_forward): Use strcoll if available.
2002-06-21 02:34:38 +00:00
H.J. Lu
33f5f53780
2002-06-18 H.J. Lu (hjl@gnu.org)
...
* nm.c: Include "elf/common.h".
(extended_symbol_info): Add elfinfo, a pointer to
elf_symbol_type.
(SYM_SIZE): Use elfinfo if it is not NULL.
(get_symbol_type): New function.
(display_archive): Set print_width for each archive member.
(display_file): Likewise.
(display_rel_file): Don't set print_width here.
(print_object_filename_sysv): Handle print_width.
(print_archive_member_sysv): Likewise.
(print_symbols): Pass (bfd_vma) 0 to print_symbol.
(print_symbol): Set the elfinfo field in extended_symbol_info
for ELF.
(print_object_filename_sysv): Fix the output format.
(print_symbol_info_sysv): Print type and section for ELF.
2002-06-18 Elias Athanasopoulos <eathan@otenet.gr>
* nm.c (print_size_symbols): Remove assignment, which makes
the symbol's size equal to its value when --size-sort is
used.
2002-06-19 03:07:04 +00:00
H.J. Lu
72797995ca
2002-06-15 H.J. Lu (hjl@gnu.org)
...
* nm.c (print_size): New variable. Initialize to 0.
(long_options): Add 'S'/"print-size".
(main): Handle 'S'.
(print_symbol_info_bsd): Print size only if print_size is not
0.
* doc/binutils.texi: Document -S/--print-size.
2002-06-15 18:40:26 +00:00
Nick Clifton
977f791144
Display the symbol's size and use it for sorting.
2002-06-13 17:04:39 +00:00
Alan Modra
b1f88ebebf
* bucomm.c: Replace CONST with const.
...
* nm.c: Likewise.
* objdump.c: Likewise.
2002-06-08 07:38:30 +00:00
Nick Clifton
6ab6b380ee
When computing size of symbols for an ELF target use the internal size field.
2002-06-07 11:02:48 +00:00
Kazu Hirata
0af11b59ba
* filemode.c: Fix formatting.
...
* ieee.c: Likewise.
* is-ranlib.c: Likewise.
* is-strip.c: Likewise.
* maybe-ranlib.c: Likewise.
* maybe-strip.c: Likewise.
* nlmconv.c: Likewise.
* nm.c: Likewise.
* not-ranlib.c: Likewise.
* not-strip.c: Likewise.
* objcopy.c: Likewise.
* objdump.c: Likewise.
2002-05-21 19:34:58 +00:00
Alan Modra
dd70071f8b
* nm.c (print_symbol): Check returned filename from
...
bfd_find_nearest_line is non-NULL.
2002-05-01 06:43:32 +00:00
Daniel Jacobowitz
3deb89d35e
2002-01-29 Daniel Jacobowitz <drow@mvista.com>
...
* nm.c (print_value): Mark abfd unused.
2002-01-30 05:00:07 +00:00
Nick Clifton
8b53311e10
Tidy up formatting of --help output.
2002-01-23 16:12:56 +00:00
Thiemo Seufer
65de42c0f9
* addr2line.c (main): Protoype.
...
* ar.c (main): Protoype.
* nm.c (main): Protoype.
* objcopy.c (main): Protoype.
* objdump.c (main): Protoype.
* size.c (main): Protoype.
* strings.c (main): Protoype.
* gasp.c (main): Protoype.
2001-12-18 08:22:30 +00:00
H.J. Lu
3882b01078
Locale changes from Bruno Haible <haible@clisp.cons.org>.
2001-09-19 05:33:36 +00:00
H.J. Lu
62a5a82d70
2001-08-25 H.J. Lu <hjl@gnu.org>
...
* nm.c (print_width): New.
(display_rel_file): Set `print_width' according to
bfd_sprintf_vma.
(print_symbol_info_bsd): Check `print_width' instead of BFD64.
2001-08-25 15:16:39 +00:00
H.J. Lu
d8180c76ad
2001-08-10 H.J. Lu <hjl@gnu.org>
...
* nm.c (print_value): Add one arg, bfd *.
(print_value): Replace fprintf_vma with bfd_fprintf_vma.
(print_symbol_info_bsd): Also pass `abfd' to print_value ().
(print_symbol_info_sysv): Likewise.
(print_symbol_info_posix): Likewise.
* objdump.c (dump_section_header): Replace printf_vma with
bfd_printf_vma.
(print_section_stabs): Likewise.
(dump_bfd_header): Likewise.
(objdump_print_value): Replace sprintf_vma with
bfd_sprintf_vma.
(disassemble_bytes): Likewise.
(dump_reloc_set): Likewise.
2001-08-10 16:43:18 +00:00
Alan Modra
21211521db
* MAINTAINERS: Update my email address
...
* nm.c (print_symbol_info_bsd): Use a simple printf string.
2001-04-11 07:07:29 +00:00
Nick Clifton
8c2bc6877d
Fix typos in ChangeLogs and update copyright notices
2001-03-13 06:43:59 +00:00
Alan Modra
7bb10502ed
Don't #ifdef inside printf in case printf is a macro.
2001-02-09 16:33:21 +00:00
Geoffrey Keating
6e8008398d
* nm.c (main): Ignore '-X32_64' as an option.
...
* ar.c (main): Likewise.
* binutils.texi (nm): Document new option.
(ar): Likewise.
2000-07-27 01:39:45 +00:00
Nick Clifton
28c309a287
Add optional style argument to --demangle switch.
2000-07-20 18:02:56 +00:00
Nick Clifton
b56f55ce04
Change output of `nm --help' to include a description of the purpose of the
...
program and a detailed description of the accepted options.
2000-07-20 00:39:10 +00:00
Alan Modra
37cc8ec1be
A mostly cosmetic tidy up of warnings and error message reporting.
2000-04-07 04:34:50 +00:00
Alan Modra
8ad3436c79
Move translated part of bug report string back into .c files so
...
xgettext can find it. Regnerate .pot files.
2000-04-04 14:32:35 +00:00
Alan Modra
c20f4f8c21
Move bug report string to one place.
2000-04-03 14:10:05 +00:00
Nick Clifton
fad6fcbb00
Apply patch from Thomas de Lellis to allow nm to distinguish between weak
...
function symbols and weak data symbols.
2000-01-28 01:06:37 +00:00
Ian Lance Taylor
1865dcb816
1999-09-06 Donn Terry <donn@interix.com>
...
* nm.c (print_symbol_info_bsd): Check for 'w' as well as 'U'.
(print_symbol_info_sysv): Likewise.
(print_symbol_info_posix): Likewise.
1999-09-06 18:47:31 +00:00
Ian Lance Taylor
b4c96d0d37
* Many files: Changes to avoid gcc warnings: Add ATTRIBUTE_UNUSED
...
as appropriate. Add variable initializations. Add casts.
* objdump.c (disassemble_bytes): Change j to bfd_vma.
* readelf.c (process_syminfo): Change i to unsigned int.
(display_debug_info): Change abbrev_number to unsigned long.
(process_mips_specific): Change fcnt to size_t.
1999-07-11 20:02:30 +00:00
Richard Henderson
252b5132c7
19990502 sourceware import
1999-05-03 07:29:11 +00:00