[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gcc -mbaserel (was: Re: too much mintlibs updates???)



>>>>> Juergen Lock <nox@jelal.north.de> writes:

|> Thomas Schulze writes:
|>> (There is a risk, of course. At the moment for example
|>> gcc-2.5.2 seems to generate a defect mbaserel mintlib...)

|>  btw... is there a gcc version >2.3.3 yet that compiles a working
|> elvis 1.7?  CFLAGS= -O2 -Wall -mbaserel -fomit-frame-pointer...

I have no problems with -mbaserel since i have applied this patch to
gcc-2.5.2:

--- orig.st/calls.c	Mon Oct 25 18:46:18 1993
+++ calls.c	Thu Nov  4 23:55:42 1993
@@ -2401,6 +2401,11 @@
      library functions shouldn't have many args.  */
 
   argvec = (struct arg *) alloca ((nargs + 1) * sizeof (struct arg));
+
+#ifdef ENCODE_SECTION_INFO
+  /* mark it as a function (to be in the text section that is) */
+  SYMBOL_REF_FLAG (fun) = 1;
+#endif
 
   INIT_CUMULATIVE_ARGS (args_so_far, NULL_TREE, fun);