aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1997-09-03 20:34:22 +0000
committerRichard M. Stallman1997-09-03 20:34:22 +0000
commitd785cf9e4de92f12f76562f4bb42ba681a650410 (patch)
tree5eea16a3aca39b6fe08211fc13f6be4461531b03 /src
parent6801b30063113396dc7731c99a564f6b39348156 (diff)
downloademacs-d785cf9e4de92f12f76562f4bb42ba681a650410.tar.gz
emacs-d785cf9e4de92f12f76562f4bb42ba681a650410.zip
(main): Call run_time_remap earlier, before any use of stdio.
Diffstat (limited to 'src')
-rw-r--r--src/emacs.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/emacs.c b/src/emacs.c
index 366f7dadaa9..71387f76fc2 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -505,6 +505,11 @@ main (argc, argv, envp)
505 } 505 }
506#endif 506#endif
507 507
508#ifdef RUN_TIME_REMAP
509 if (initialized)
510 run_time_remap (argv[0]);
511#endif
512
508 sort_args (argc, argv); 513 sort_args (argc, argv);
509 514
510 if (argmatch (argv, argc, "-version", "--version", 3, NULL, &skip_args)) 515 if (argmatch (argv, argc, "-version", "--version", 3, NULL, &skip_args))
@@ -615,11 +620,6 @@ main (argc, argv, envp)
615 /* Record (approximately) where the stack begins. */ 620 /* Record (approximately) where the stack begins. */
616 stack_bottom = &stack_bottom_variable; 621 stack_bottom = &stack_bottom_variable;
617 622
618#ifdef RUN_TIME_REMAP
619 if (initialized)
620 run_time_remap (argv[0]);
621#endif
622
623#ifdef USG_SHARED_LIBRARIES 623#ifdef USG_SHARED_LIBRARIES
624 if (bss_end) 624 if (bss_end)
625 brk ((void *)bss_end); 625 brk ((void *)bss_end);