* 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.
This commit is contained in:
Mark Mitchell 2005-09-30 16:37:32 +00:00
parent 58654fd868
commit 869b9d07bb
24 changed files with 73 additions and 0 deletions

View File

@ -1,3 +1,23 @@
2005-08-30 Mark Mitchell <mark@codesourcery.com>
* 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.
2005-09-30 H.J. Lu <hongjiu.lu@intel.com>
* Makefile.am: Run "make dep-am".

View File

@ -296,6 +296,8 @@ main (int argc, char **argv)
program_name = *argv;
xmalloc_set_program_name (program_name);
expandargv (&argc, &argv);
bfd_init ();
set_default_bfd_target ();

View File

@ -360,6 +360,8 @@ main (int argc, char **argv)
program_name = argv[0];
xmalloc_set_program_name (program_name);
expandargv (&argc, &argv);
if (is_ranlib < 0)
{
char *temp;

View File

@ -494,6 +494,8 @@ main (int ac, char **av)
program_name = av[0];
xmalloc_set_program_name (program_name);
expandargv (&ac, &av);
while ((opt = getopt_long (ac, av, "HhVv", long_options,
(int *) NULL))
!= EOF)

View File

@ -170,6 +170,8 @@ main (int argc, char **argv)
program_name = argv[0];
xmalloc_set_program_name (program_name);
expandargv (&argc, &argv);
strip_underscore = TARGET_PREPENDS_UNDERSCORE;
while ((c = getopt_long (argc, argv, "_nps:", long_options, (int *) 0)) != EOF)

View File

@ -3124,6 +3124,8 @@ main (int ac, char **av)
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
expandargv (&argc, &argv);
while ((c = getopt_long (ac, av,
#ifdef DLLTOOL_MCORE_ELF
"m:e:l:aD:d:z:b:xp:cCuUkAS:f:nvVHhM:L:F:",

View File

@ -627,6 +627,8 @@ main (int argc, char **argv)
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
expandargv (&argc, &argv);
saved_argv = (char **) xmalloc (argc * sizeof (char*));
dlltool_arg_indices = (int *) xmalloc (argc * sizeof (int));
driver_arg_indices = (int *) xmalloc (argc * sizeof (int));

View File

@ -210,6 +210,8 @@ main (int argc, char **argv)
program_name = argv[0];
xmalloc_set_program_name (program_name);
expandargv (&argc, &argv);
bfd_init ();
set_default_bfd_target ();

View File

@ -1491,6 +1491,8 @@ main (int argc, char **argv)
START_PROGRESS (program_name, 0);
expandargv (&argc, &argv);
bfd_init ();
set_default_bfd_target ();

View File

@ -3181,6 +3181,8 @@ main (int argc, char *argv[])
START_PROGRESS (program_name, 0);
expandargv (&argc, &argv);
strip_symbols = STRIP_UNDEF;
discard_locals = LOCALS_UNDEF;

View File

@ -2983,6 +2983,8 @@ main (int argc, char **argv)
START_PROGRESS (program_name, 0);
expandargv (&argc, &argv);
bfd_init ();
set_default_bfd_target ();

View File

@ -8829,6 +8829,8 @@ main (int argc, char **argv)
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
expandargv (&argc, &argv);
parse_args (argc, argv);
if (num_dump_sects > 0)

View File

@ -133,6 +133,8 @@ main (int argc, char **argv)
program_name = *argv;
xmalloc_set_program_name (program_name);
expandargv (&argc, &argv);
bfd_init ();
set_default_bfd_target ();

View File

@ -1761,6 +1761,8 @@ main (int ac, char **av)
program_name = av[0];
xmalloc_set_program_name (program_name);
expandargv (&ac, &av);
while ((opt = getopt_long (ac, av, "dHhVvqn", long_options,
(int *) NULL))
!= EOF)

View File

@ -185,6 +185,9 @@ main (int argc, char **argv)
program_name = argv[0];
xmalloc_set_program_name (program_name);
expandargv (&argc, &argv);
string_min = -1;
print_addresses = FALSE;
print_filenames = FALSE;

View File

@ -673,6 +673,8 @@ main (int ac, char **av)
program_name = av[0];
xmalloc_set_program_name (program_name);
expandargv (&ac, &av);
while ((opt = getopt_long (ac, av, "HhVv", long_options, (int *) NULL)) != EOF)
{
switch (opt)

View File

@ -412,6 +412,8 @@ int yydebug;
int
main (int ac, char **av)
{
expandargv (&ac, &av);
yydebug=0;
if (ac > 1)
writecode = av[1][1];

View File

@ -767,6 +767,8 @@ main (int argc, char **argv)
program_name = argv[0];
xmalloc_set_program_name (program_name);
expandargv (&ac, &av);
bfd_init ();
set_default_bfd_target ();

View File

@ -1,3 +1,7 @@
2005-09-30 Mark Mitchell <mark@codesourcery.com>
* as.c (main): Use expandargv.
2005-09-30 Jan Beulich <jbeulich@novell.com>
* config/tc-tic4x.c (tic4x_set): Advance input_line_pointer past

View File

@ -1050,6 +1050,8 @@ main (int argc, char ** argv)
myname = argv[0];
xmalloc_set_program_name (myname);
expandargv (&argc, &argv);
START_PROGRESS (myname, 0);
#ifndef OBJ_DEFAULT_OUTPUT_FILE_NAME

View File

@ -1,3 +1,7 @@
2005-09-30 Mark Mitchell <mark@codesourcery.com>
* gprof.c (main): Use expandargv.
2005-09-30 Matthias Kurz <mk@baerlap.north.de>
* gprof.c (main):Only invoke bindtextdomain() and textdomain() if

View File

@ -197,6 +197,8 @@ main (int argc, char **argv)
whoami = argv[0];
xmalloc_set_program_name (whoami);
expandargv (&argc, &argv);
while ((ch = getopt_long (argc, argv,
"aA::bBcCd::De:E:f:F:hiI:J::k:lLm:n::N::O:p::P::q::Q::st:Tvw:xyzZ::",
long_options, 0))

View File

@ -1,3 +1,7 @@
2005-09-30 Mark Mitchell <mark@codesourcery.com>
* ldmain.c (main): Use expandargv.
2005-09-30 Catherine Moore <clm@cm00re.com>
* Makefile.am: Bfin support.

View File

@ -198,6 +198,8 @@ main (int argc, char **argv)
START_PROGRESS (program_name, 0);
expandargv (&argc, &argv);
bfd_init ();
bfd_set_error_program_name (program_name);