Commit d785cf9e authored by Richard M. Stallman's avatar Richard M. Stallman

(main): Call run_time_remap earlier, before any use of stdio.

parent 6801b300
......@@ -505,6 +505,11 @@ main (argc, argv, envp)
}
#endif
#ifdef RUN_TIME_REMAP
if (initialized)
run_time_remap (argv[0]);
#endif
sort_args (argc, argv);
if (argmatch (argv, argc, "-version", "--version", 3, NULL, &skip_args))
......@@ -615,11 +620,6 @@ main (argc, argv, envp)
/* Record (approximately) where the stack begins. */
stack_bottom = &stack_bottom_variable;
#ifdef RUN_TIME_REMAP
if (initialized)
run_time_remap (argv[0]);
#endif
#ifdef USG_SHARED_LIBRARIES
if (bss_end)
brk ((void *)bss_end);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment