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