simonb
9a68629ca6
Enlarge the stack frame to 16 bytes, and store the return address 8
...
bytes in instead of at the start, to leave room for a .cpload to store
the gp at offset 0 in the frame. Allow 8 bytes for each (for mips64
one day...).
.cpload overwrite problems noted by Michael Hitch.
2001-08-16 03:44:46 +00:00
simonb
19211890ff
Enable dot_init.h on mips, fixing .init & .fini processing.
2001-07-18 04:43:48 +00:00
simonb
1bc139fd41
Add but not enable correct .init/.fini handling.
2001-07-17 15:20:23 +00:00
cgd
d220ca5ba3
fix up NetBSD RCS Ids to match the standard, and the leading comment as
...
to match as well. No functional changes.
2000-06-14 06:48:47 +00:00
simonb
6bf3aa19f9
More trailing white space.
1999-07-02 15:46:05 +00:00
thorpej
cb3c96c11e
Pull together common Makefile fragments for ELF crt0 files, and use it
...
across the board.
1999-03-20 00:32:40 +00:00
thorpej
0d19945594
Collect the top parts of the ELF crt0.c files into a common header, and
...
use it across the board.
crt0.c now contains stuff that REALLY IS machine-dependent, or stuff that
is completely intermingled in machdep code (and thus can't be separated
easily).
1999-03-20 00:13:51 +00:00
thorpej
0571914c5b
Garbage-collect ECOFF_COMPAT.
1999-03-19 23:55:17 +00:00
thorpej
3f196ccbc8
Put a good chunk of code common to all ELF crt0.c files into a common
...
location, and use it.
1999-03-19 23:34:49 +00:00
thorpej
4216363b47
Move crtbegin.c and crtend.c from alpha subdir to common_elf subdir via
...
repository copy, remove all redundant copies of these files, and make all
ELF platforms use the common versions.
1999-03-19 23:16:15 +00:00
thorpej
d002bd5dc3
Not used.
1999-03-19 23:11:53 +00:00
nisimura
00ab30d02b
- Make this compilable.
1999-03-19 01:17:41 +00:00
kleink
198e9a2784
s/rtld_setup/_rtld_setup/ to move it out of the user's name space.
1999-03-08 10:49:08 +00:00
jonathan
de51528720
Change __init()/__fini() -> _init()/_fini().
1998-11-04 23:48:25 +00:00
pk
015fada66a
Assign my copyrights to TNF.
1998-09-05 13:20:07 +00:00
thorpej
4d2424a47a
We need <sys/param.h> because sysident.h requires the `NetBSD' constant.
1998-07-27 21:46:49 +00:00
mycroft
f5e7ca07dd
These all need types.h.
1998-07-25 04:45:04 +00:00
mycroft
d005dcbce0
Don't pull in param.h (and therefore don't pull in unistd.h).
1998-07-25 04:34:12 +00:00
mrg
f23ec91e29
oops, forgot it add this earlier (pr#5425)
1998-05-09 03:48:37 +00:00
mrg
2e9c82f79d
build standard NetBSD/ELF crt{begin,end}.o files, clean up some egcs warnings.
1998-05-02 21:26:54 +00:00
thorpej
367b689c8f
typi
1998-02-07 20:44:40 +00:00
perry
43498a0a88
remove obsolete register declarations
1998-02-03 20:01:32 +00:00
lukem
6bf85c9ba3
* use CPPFLAGS instead of CFLAGS for -D and -I options
...
* use COPTS instead of CFLAGS for -fPIC et al
* use ${COMPILE.c} instead of ${CC} ${CFLAGS} -c
* use FILES and FILESDIR to install pc532 objects (instead of install: rule) -
this makes it consistent with the other a.out ports (arm32, i386, m68k, sparc)
1997-10-22 16:00:39 +00:00
jonathan
338a11a3e7
RCSid police. Add __RCSID while we're here.
...
Add alternate label '_start' in front of __start() for installs with
DESTDIR or programs that assume '_start'.
1997-10-20 03:24:49 +00:00
lukem
6fffd559bd
WARNSify (not yet tested on all platforms yet)
1997-10-09 12:29:21 +00:00
thorpej
eb382f8e2b
Make sure we're passed a valid obj_entry.
1997-08-24 18:11:23 +00:00
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
cjs
7a66732d34
Back out BUILDDIR and NOINSTALL changes.
1997-05-31 21:21:13 +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
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
jonathan
2ba4510cdc
C versions of crt0 for mips.
1997-03-05 03:45:05 +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
2a3b48cdaf
CFLAGS+=, not CFLAGS=
1995-12-12 01:53:50 +00:00
mellon
af776e8143
Correctly build gcrt0.o
1995-06-15 21:59:25 +00:00
mellon
0cfebbe02b
start -> __start in END macro as well
1995-06-15 21:58:44 +00:00
mellon
96ba717024
start -> __start to avoid namespace bugs
1995-06-15 21:56:58 +00:00
mellon
139d140728
Ensure that __progname is in .data, not in .sdata
1995-05-03 22:13:15 +00:00
mycroft
4c34be6b52
Clean up deleted files.
1995-03-01 00:00:00 +00:00
mycroft
fb7161aa7e
Use ${COMPILE.S}, not ${CPP} directly.
1995-01-07 23:21:41 +00:00
mycroft
d8f841190c
.s -> .S
1994-12-16 10:01:23 +00:00
mycroft
c32023e792
More underscores...
1994-12-15 17:02:08 +00:00
dean
add2031dcf
Prepended underscores
1994-11-14 23:33:46 +00:00
glass
f518ec51c9
crt0 support for mips..no shared library support
1994-05-24 07:33:47 +00:00