projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
DWARF attrs: add delimiter
[deliverable/binutils-gdb.git]
/
binutils
/
size.c
diff --git
a/binutils/size.c
b/binutils/size.c
index 415fee1011fabd11c1006cbc0fcadf85fd5eb3ea..c0a8f2e1c3aed52d0e8f6a310230ece02935867a 100644
(file)
--- a/
binutils/size.c
+++ b/
binutils/size.c
@@
-1,7
+1,5
@@
/* size.c -- report size of various sections of an executable file.
/* size.c -- report size of various sections of an executable file.
- Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
- 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
- Free Software Foundation, Inc.
+ Copyright (C) 1991-2017 Free Software Foundation, Inc.
This file is part of GNU Binutils.
This file is part of GNU Binutils.
@@
-135,6
+133,7
@@
main (int argc, char **argv)
program_name = *argv;
xmalloc_set_program_name (program_name);
program_name = *argv;
xmalloc_set_program_name (program_name);
+ bfd_set_error_program_name (program_name);
expandargv (&argc, &argv);
expandargv (&argc, &argv);
@@
-273,7
+272,7
@@
calculate_common_size (bfd *abfd)
if (storage < 0)
bfd_fatal (bfd_get_filename (abfd));
if (storage)
if (storage < 0)
bfd_fatal (bfd_get_filename (abfd));
if (storage)
- syms = xmalloc (storage);
+ syms =
(asymbol **)
xmalloc (storage);
symcount = bfd_canonicalize_symtab (abfd, syms);
if (symcount < 0)
symcount = bfd_canonicalize_symtab (abfd, syms);
if (symcount < 0)
@@
-367,7
+366,14
@@
display_archive (bfd *file)
display_bfd (arfile);
if (last_arfile != NULL)
display_bfd (arfile);
if (last_arfile != NULL)
- bfd_close (last_arfile);
+ {
+ bfd_close (last_arfile);
+
+ /* PR 17512: file: a244edbc. */
+ if (last_arfile == arfile)
+ return;
+ }
+
last_arfile = arfile;
}
last_arfile = arfile;
}
@@
-493,8
+499,8
@@
print_berkeley_format (bfd *abfd)
fputs (bfd_get_filename (abfd), stdout);
fputs (bfd_get_filename (abfd), stdout);
- if (
bfd_my_archive (abfd)
)
- printf (" (ex %s)", bfd_get_filename (
bfd_my_archive (abfd)
));
+ if (
abfd->my_archive
)
+ printf (" (ex %s)", bfd_get_filename (
abfd->my_archive
));
}
/* I REALLY miss lexical functions! */
}
/* I REALLY miss lexical functions! */
@@
-581,8
+587,8
@@
print_sysv_format (bfd *file)
svi_total = 0;
printf ("%s ", bfd_get_filename (file));
svi_total = 0;
printf ("%s ", bfd_get_filename (file));
- if (
bfd_my_archive (file)
)
- printf (" (ex %s)", bfd_get_filename (
bfd_my_archive (file)
));
+ if (
file->my_archive
)
+ printf (" (ex %s)", bfd_get_filename (
file->my_archive
));
printf (":\n%-*s %*s %*s\n", svi_namelen, "section",
svi_sizelen, "size", svi_vmalen, "addr");
printf (":\n%-*s %*s %*s\n", svi_namelen, "section",
svi_sizelen, "size", svi_vmalen, "addr");
This page took
0.023606 seconds
and
4
git commands to generate.