From 869b9d07bbfd935cc39b6bccb3da0506e467b6a7 Mon Sep 17 00:00:00 2001 From: Mark Mitchell Date: Fri, 30 Sep 2005 16:37:32 +0000 Subject: [PATCH] * 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. --- binutils/ChangeLog | 20 ++++++++++++++++++++ binutils/addr2line.c | 2 ++ binutils/ar.c | 2 ++ binutils/coffdump.c | 2 ++ binutils/cxxfilt.c | 2 ++ binutils/dlltool.c | 2 ++ binutils/dllwrap.c | 2 ++ binutils/nlmconv.c | 2 ++ binutils/nm.c | 2 ++ binutils/objcopy.c | 2 ++ binutils/objdump.c | 2 ++ binutils/readelf.c | 2 ++ binutils/size.c | 2 ++ binutils/srconv.c | 2 ++ binutils/strings.c | 3 +++ binutils/sysdump.c | 2 ++ binutils/sysinfo.y | 2 ++ binutils/windres.c | 2 ++ gas/ChangeLog | 4 ++++ gas/as.c | 2 ++ gprof/ChangeLog | 4 ++++ gprof/gprof.c | 2 ++ ld/ChangeLog | 4 ++++ ld/ldmain.c | 2 ++ 24 files changed, 73 insertions(+) diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 1b05787126a..fbe5e8fd692 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,23 @@ +2005-08-30 Mark Mitchell + + * 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 * Makefile.am: Run "make dep-am". diff --git a/binutils/addr2line.c b/binutils/addr2line.c index 6464e37de0d..7b9550da8ef 100644 --- a/binutils/addr2line.c +++ b/binutils/addr2line.c @@ -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 (); diff --git a/binutils/ar.c b/binutils/ar.c index 4e53c787d07..10c62bfb5af 100644 --- a/binutils/ar.c +++ b/binutils/ar.c @@ -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; diff --git a/binutils/coffdump.c b/binutils/coffdump.c index c79c978bb82..4361295a1df 100644 --- a/binutils/coffdump.c +++ b/binutils/coffdump.c @@ -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) diff --git a/binutils/cxxfilt.c b/binutils/cxxfilt.c index 25e8e356598..f0a3a9e5ba3 100644 --- a/binutils/cxxfilt.c +++ b/binutils/cxxfilt.c @@ -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) diff --git a/binutils/dlltool.c b/binutils/dlltool.c index 512cf7b02ac..6c86071af53 100644 --- a/binutils/dlltool.c +++ b/binutils/dlltool.c @@ -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:", diff --git a/binutils/dllwrap.c b/binutils/dllwrap.c index a3b3794a6a3..1c953d36af5 100644 --- a/binutils/dllwrap.c +++ b/binutils/dllwrap.c @@ -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)); diff --git a/binutils/nlmconv.c b/binutils/nlmconv.c index aa68b6ea35b..55bccebcb68 100644 --- a/binutils/nlmconv.c +++ b/binutils/nlmconv.c @@ -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 (); diff --git a/binutils/nm.c b/binutils/nm.c index 999a6db7105..c47e99e581b 100644 --- a/binutils/nm.c +++ b/binutils/nm.c @@ -1491,6 +1491,8 @@ main (int argc, char **argv) START_PROGRESS (program_name, 0); + expandargv (&argc, &argv); + bfd_init (); set_default_bfd_target (); diff --git a/binutils/objcopy.c b/binutils/objcopy.c index abc0eb1326c..496d4bf6f61 100644 --- a/binutils/objcopy.c +++ b/binutils/objcopy.c @@ -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; diff --git a/binutils/objdump.c b/binutils/objdump.c index 513308e01dc..e5db6615741 100644 --- a/binutils/objdump.c +++ b/binutils/objdump.c @@ -2983,6 +2983,8 @@ main (int argc, char **argv) START_PROGRESS (program_name, 0); + expandargv (&argc, &argv); + bfd_init (); set_default_bfd_target (); diff --git a/binutils/readelf.c b/binutils/readelf.c index a976903155d..7d50b88b3fd 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -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) diff --git a/binutils/size.c b/binutils/size.c index 021d50322de..4bc1bf60757 100644 --- a/binutils/size.c +++ b/binutils/size.c @@ -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 (); diff --git a/binutils/srconv.c b/binutils/srconv.c index 1ae5b65aac6..e6f35ca15fe 100644 --- a/binutils/srconv.c +++ b/binutils/srconv.c @@ -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) diff --git a/binutils/strings.c b/binutils/strings.c index bdfca226ffa..14f919422ef 100644 --- a/binutils/strings.c +++ b/binutils/strings.c @@ -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; diff --git a/binutils/sysdump.c b/binutils/sysdump.c index 2b38b2f78b4..ec19472558f 100644 --- a/binutils/sysdump.c +++ b/binutils/sysdump.c @@ -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) diff --git a/binutils/sysinfo.y b/binutils/sysinfo.y index a7077480bc4..d340abf81c8 100644 --- a/binutils/sysinfo.y +++ b/binutils/sysinfo.y @@ -412,6 +412,8 @@ int yydebug; int main (int ac, char **av) { + expandargv (&ac, &av); + yydebug=0; if (ac > 1) writecode = av[1][1]; diff --git a/binutils/windres.c b/binutils/windres.c index 4336f006e74..c0f1b8cb73d 100644 --- a/binutils/windres.c +++ b/binutils/windres.c @@ -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 (); diff --git a/gas/ChangeLog b/gas/ChangeLog index 1617e21c3e5..8f9318476a2 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,7 @@ +2005-09-30 Mark Mitchell + + * as.c (main): Use expandargv. + 2005-09-30 Jan Beulich * config/tc-tic4x.c (tic4x_set): Advance input_line_pointer past diff --git a/gas/as.c b/gas/as.c index 07d3a07b08b..07f76924cb9 100644 --- a/gas/as.c +++ b/gas/as.c @@ -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 diff --git a/gprof/ChangeLog b/gprof/ChangeLog index 714081300bc..4c438df39a9 100644 --- a/gprof/ChangeLog +++ b/gprof/ChangeLog @@ -1,3 +1,7 @@ +2005-09-30 Mark Mitchell + + * gprof.c (main): Use expandargv. + 2005-09-30 Matthias Kurz * gprof.c (main):Only invoke bindtextdomain() and textdomain() if diff --git a/gprof/gprof.c b/gprof/gprof.c index 0430df72459..2ac43408eee 100644 --- a/gprof/gprof.c +++ b/gprof/gprof.c @@ -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)) diff --git a/ld/ChangeLog b/ld/ChangeLog index c5df64e6981..24ae88faf27 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,7 @@ +2005-09-30 Mark Mitchell + + * ldmain.c (main): Use expandargv. + 2005-09-30 Catherine Moore * Makefile.am: Bfin support. diff --git a/ld/ldmain.c b/ld/ldmain.c index b5bf2cba2c5..dd79c23a8ea 100644 --- a/ld/ldmain.c +++ b/ld/ldmain.c @@ -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); -- 2.30.2