Submission for comp-unix-microport

UNIX-UNIX Cp uucp at tolerant.UUCP
Sat Jan 7 09:12:02 AEST 1989


Path: tolerant!voder!apple!rutgers!mailrus!b-tech!zeeff
From: zeeff at b-tech.ann-arbor.mi.us (Jon Zeeff)
Newsgroups: comp.unix.microport
Subject: Re: Green Hills 386 compiler
Keywords: gcc shared libraries
Message-ID: <5023 at b-tech.ann-arbor.mi.us>
Date: 29 Dec 88 16:00:08 GMT
References: <293 at ssbn.WLK.COM>
Reply-To: zeeff at b-tech.ann-arbor.mi.us (Jon Zeeff)
Distribution: na
Organization: Branch Technology Ann Arbor, MI
Lines: 44


/*
   This allows gcc (Green Hills) to be used with shared libraries 

   To install,

   1) compile this program creating ld
   3) cp /usr/ghs/BIN/386/lib/crt0.o to crt0.o.bak
   4) cp /lib/crt1.o to /usr/ghs/BIN/386/lib/crt0.o
   5) mv /bin/ld /bin/ld.real
   6) mv this program (ld) to /bin/ld
   7) cp /bin/gcc to /usr/gcc/cc
   8) use -lc_s on your cc lines. 
   9) set your path to use /usr/gcc before /bin

    Anything you compile should now used shared libraries

*/

#include <stdio.h>

main(argc,argv)
int argc;
char **argv;
{
int i;
char *new_argv[500];

for (i = 0; i < argc; ++i) {
   new_argv[i] = argv[i];
}

new_argv[i++] = "/lib/crtn.o";
new_argv[i] = NULL;

execv("/bin/ld.real",new_argv);

return 1;

}
-- 
  Jon Zeeff			zeeff at b-tech.ann-arbor.mi.us
  Support ISO 8859/1		zeeff%b-tech.uucp at umix.cc.umich.edu
  Ann Arbor, MI			umix!b-tech!zeeff



More information about the Comp.unix.microport mailing list