Commit Graph

151 Commits

Author SHA1 Message Date
jonathan a1601b522b Fix include path: use $(CURDIR). Kindly pointed out by <cgd@pa.dec.com> 1997-06-28 08:21:52 +00:00
jonathan 9b5e38ce15 Un-comment-out "CFLAGS+= -I/usr/src/libexec/ld.elf_so" for new crt0.c 1997-06-24 20:00:45 +00:00
jonathan f4aee0fcbb New, Alpha-derived crt0.c with ld.elf_so support.
Expects additional register-passed arguments from the kernel on
exec().  If no such args ($a0 is zero), fall back to the old hack of
adjusting the current $sp with a hard-coded frame offset for __start's
local frame(!).

Suggested by Jason Thorpe (thorpej@nas.nasa.gov), debugged and
stackframe offsets updated by Jonathan Stone.
1997-06-23 22:04:34 +00:00
mikel 9dc08ab2a8 add parens for gcc -Wall 1997-06-19 06:02:06 +00:00
veego a16ae1d6d0 Use FILES and FILESDIR instead of install: 1997-06-12 12:18:11 +00:00
christos 9a8f6b4e41 Use FILES 1997-06-05 21:30:54 +00:00
cjs 7a66732d34 Back out BUILDDIR and NOINSTALL changes. 1997-05-31 21:21:13 +00:00
veego 4e59f8c226 Remove the install: line and use FILES and FILESDIR. 1997-05-29 15:57:45 +00:00
cjs 5241c2a923 These makefiles need to include bsd.own.mk early-on so that they
know BUILDDIR and OBJDIR.
1997-05-29 15:13:00 +00:00
cjs 5fd7ce7066 These updates to the build allow building against include files
and libs in the object tree, if you use a separate object tree,
while maintaining backward compatability with other build methods.
See the notes in src/share/mk/bsd.README for full details. Note
that the `make includes' target now only installs the include files
in the build directory (if you use one--otherwise they go in DESTDIR
just like before); `make install' will install include files in
DESTDIR.
1997-05-26 03:55:19 +00:00
phil ae7e730366 Force the link. 1997-05-19 23:24:21 +00:00
mycroft eaaacab9dc __ps_strings is initialized to 0. 1997-05-17 16:19:49 +00:00
phil 10a830a931 Add to install to link scrt0.o to crt0.o. 1997-05-15 15:56:08 +00:00
mycroft cc4a1553a1 Eliminate bogus redefinitions of standard targets. 1997-05-09 07:50:03 +00:00
thorpej 489b4a686e Fat-finger; one too many "_"'s in the entry point declaration. 1997-04-17 06:11:55 +00:00
thorpej d5e51dc9c2 Correct a bogus comment, pointed out by Chris Demetriou <cgd@netbsd.org> 1997-04-16 20:53:15 +00:00
thorpej 406317dd8f Fix a couple of things pointed out by Chris Demetriou <cgd@netbsd.org>:
- fix _DYNAMIC definition bogon
- add the ECOFF_COMPAT #ifdef's to make diffing with other ports that
  use this code base easier
1997-04-16 20:50:46 +00:00
thorpej ff5a472ce7 NetBSD/powerpc doesn't use the "generic" c++rt0.o 1997-04-16 19:43:53 +00:00
thorpej 062ebf7414 C run-time startup routines, based on NetBSD/alpha's, with modifications
for NetBSD/powerpc by me.
1997-04-16 19:38:22 +00:00
christos 8259dd08d6 Makefile cleanups:
use INCS variable to install includes and FILES to install objects.
1997-03-24 22:11:48 +00:00
cgd 5e25db4c59 pull in the sysident.h from ld.so, for NetBSD PT_NOTE generation 1997-03-21 05:47:28 +00:00
cgd b3860e1660 fix _DYNAMIC definition bogon 1997-03-10 23:17:10 +00:00
cgd 78b14cccb3 s/mainprog_obj/__&/ 1997-03-10 23:13:31 +00:00
cgd 46db752aef fix include path bogosity pointed out by Greg Oster 1997-03-09 04:49:06 +00:00
jonathan 2ba4510cdc C versions of crt0 for mips. 1997-03-05 03:45:05 +00:00
explorer 6c8b64fd26 Someone forgot a line continuation character 1997-02-23 21:40:09 +00:00
cgd 3192bd314f turn Alpha's ELF_TOOLCHAIN checks to ECOFF_TOOLCHAIN checks 1997-02-23 20:42:24 +00:00
cgd bb52eeac41 build with -fPIC 1997-02-17 19:22:32 +00:00
cgd 4754bd637b make hard links from crt{begin,end}.o to crd{begin,end}S.o 1997-02-17 19:17:18 +00:00
scottr 372fe2ff92 Catch up with const changes to dlopen() and dlsym() prototypes in
<dlfcn.h>.  Tested on i386 and hp300 for crt0.o and ld.so, verified
other references by inspection.
1997-01-03 22:37:58 +00:00
cgd d71a874906 const-ify char *'s that need it 1997-01-03 18:23:41 +00:00
pk f2eb968909 asm => __asm__, and garbage collect a bit. 1996-12-27 21:44:59 +00:00
matthias 2793a4050c * Set __ps_strings + some code cleanup. 1996-12-27 08:30:13 +00:00
cgd 13d2436889 include dlfcn.h for exported dynamic loader function prototypes. 1996-12-18 22:25:09 +00:00
cgd 84e780e7f0 -I expected location of ELF shared loader 1996-12-14 06:03:14 +00:00
thorpej f6a53d4680 Sync with the i386 crt0.c 1996-12-08 00:39:42 +00:00
pk a7bb9f2ea8 Set __ps_strings which is passed in register %g1. 1996-12-07 23:47:40 +00:00
mycroft f7bc1cda35 Tiny optimization in __syscall. 1996-12-07 23:31:07 +00:00
mycroft e8770b9c15 Oops; don't need sys/syscall.h. 1996-12-07 23:00:20 +00:00
mycroft a54c49b343 Set __ps_strings at startup. Move the argv/envp setup into a short assembler
prologue.  General cleanup.
1996-12-07 22:34:09 +00:00
mycroft e1af33609a Add a __ps_strings variable here, initialized to 0. 1996-12-07 22:31:25 +00:00
cgd 6da04f404e expect a 'struct ps_strings *' as the fourth argument to __start.
If it's there, i.e. doesn't have a value known to be emitted by kernels
which didn't include support for passing it (0 or 0xbabefacedeadbeef),
set __ps_strings to it.  Otherwise, use the old 'normal' PS_STRINGS value
for __ps_strings.
1996-12-07 20:04:38 +00:00
ws 2aa55c5a2b NetBSD/powerpc doesn't support (yet?) -fpic 1996-11-03 18:12:00 +00:00
thorpej 5042faf816 RCS id police. 1996-10-18 05:36:42 +00:00
thorpej 25f2d6465d Use ${INSTALL}. 1996-10-18 05:27:38 +00:00
cgd 53ded8ebcb add a hack so that old- and new-toolchain alphas do the right thing:
include bsd.own.mk early on, and if !alpha or if !ELF_TOOLCHAIN,
build c++rt0.o.  ELF alphas don't use the 'normal' C++ runtime startup
routines.  Eventually, there should be better ways to distinguish what
toolchain and object format is in use, and the Alpha C++ startup code
changes should be merged with that used by the other ports.
1996-10-08 00:36:28 +00:00
cgd c7a4944620 update so this compiles with the latest ELF ld.so. Include bsd.own.mk
at the top, for ELF_TOOLCHAIN definition, so this can be better
conditionalized for new/old toolchains.
1996-10-08 00:29:48 +00:00
cgd cccb7a88b4 Reimplement in C, adding ELF support. if compiled with -DECOFF_COMPAT
(currently the default), then it compiles on both an ECOFF toolchain
and on an ELF toolchain (but w/o support for dynamic linking or C++
constructors & destructors).  If compiled without -DECOFF_COMPAT, it
supports statically- or dynamically-linked ELF binaries (and shared
libraries).
1996-09-12 16:59:01 +00:00
cgd 44279d38cb user better local labels, be smarter with noat and use of the at register.
Suggested by Matt Thomas.
1996-09-09 01:03:38 +00:00
cgd 6f5a87ec6c remove a few macro definitions which duplicate (and in one instance,
conflict with) those in <machine/asm.h>.
1996-05-16 21:56:22 +00:00