Commit Graph

193 Commits

Author SHA1 Message Date
kleink de694bce9c If the runtime linker does not indicate an error condition, let dlerror()
return a null pointer rather than the string returned by strerror(0).
1998-05-30 18:33:43 +00:00
pk 191c543b95 Add `dladdr()' stub. 1998-05-12 21:25:44 +00:00
pk 5de570e329 Include <dlfcn.h> before <link.h> 1998-05-12 21:25:18 +00:00
mrg f23ec91e29 oops, forgot it add this earlier (pr#5425) 1998-05-09 03:48:37 +00:00
cgd a21bdbd076 can't include crt.h; it's not gone! 1998-05-06 20:58:34 +00:00
ross 03363828ac No longer needed, calls begin crtbegin & crtend were just removed. 1998-05-06 20:46:56 +00:00
ross cbd1bb578a Sigh, don't make global calls in repeated sharedlib components. It blows
away the dynamic loader.
1998-05-06 20:45:54 +00:00
mycroft 8f3189af13 Trivial change. 1998-05-06 09:30:26 +00:00
ross ab2c05e5a3 Eliminate incorrect gcc-generated cross-section bsr's by calling the static
constructor/destructor dispatcher via a function pointer protected from
constant propagation. Also, create (presently unused) .S files that solve
the same problem and in addition allow in-line .init section and .fini
section code. This is too big a mod for a 3.2 pullup, however.
1998-05-06 05:32:08 +00:00
ross bb44cd0d28 Put the vanilla versions of these into CVS so that Those Who Come Later
can see the hand assembly mods in a cvs diff rather than having to start over
from the prototype .c files. (Although these will also be available.)
1998-05-06 00:59:18 +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
matthias 10f833afad Move rcsid so that executables start with code again (that's just
tradition, not really necessary).
1998-04-21 19:53:39 +00:00
cgd c0ac8bae67 GC alpha's ECOFF_TOOLCHAIN make variable, and related bits. Nobody
should be using an ECOFF toolchain on NetBSD/alpha any more.
1998-03-28 00:50:41 +00:00
jtc 6351dbac24 Rename initialization and termination functions from __init() and
__fini() to _init() and _fini().  The linker sets the DT_INIT and
DT_FINI .dynamic section entries based on the latter names.
1998-03-27 09:11:33 +00:00
matthias 77aae84af4 Undo last change. Global register variables really have to be declared
as register variables...
1998-03-16 22:22:14 +00:00
mark 156a6a5c98 Replace missing ; when calculating the environment pointer. 1998-03-10 22:32:08 +00:00
mycroft 4462053ab3 Fill in missing (default) mmap(2) flags. 1998-02-20 09:27:18 +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
pk 49c810b2c8 Avoid spurious calls to foreign constructors/destructors in case the
shared library we link with does not have any of its own.
Note: this only works for a.out(5).
1997-12-29 15:36:50 +00:00
lukem cc8d1d3968 use a common Makefile.csu.aout for the a.out ports 1997-10-27 01:03:39 +00:00
thorpej 07de56201a Fix think'o in previous. 1997-10-24 21:18:25 +00:00
lukem fa2de9fb4c use ${.CURDIR}/${SRCS} instead of ${.ALLSRC} (from i386/Makefile) 1997-10-24 00:35:22 +00:00
christos 88d2078c4f Revert previous change ${.ALLSRC} will contain .h files etc. 1997-10-23 21:42:54 +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
lukem a60b842a81 use CPPFLAGS instead of CFLAGS 1997-10-21 23:59:18 +00:00
thorpej 977b44de88 Ooops, typo in a comment. 1997-10-20 20:41:09 +00:00
thorpej 6a34a8996c Add an __RCSID(). 1997-10-20 20:40:27 +00:00
thorpej 58ee7fe2a9 Add an __RCSID(). 1997-10-20 20:38:24 +00:00
christos fd2bc36384 Move rcsid[] after the start symbol. 1997-10-20 16:09:27 +00:00
christos aef9d1ed68 Move rcsid[] after start:, so that start starts at 0. 1997-10-20 16:08:28 +00:00
mycroft 2959c0da1f Move the RCS id after `start', so that `start' is once again the first thing
in the text segment.
1997-10-20 13:49:45 +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
christos 0e6b23ccbf Put the align directive after .text... 1997-10-15 01:56:55 +00:00
christos 773ab1dd74 Put back __RCSID(): The problem was that if RCSID ended up in the text segment,
it was placed before `start', and start ended up misaligned. Add an alignment
directive for the start symbol. Of course ld(1) should not core-dump relocating
misaligned symbols, but this will be fixed shortly.
1997-10-14 17:11:03 +00:00
is 6183998d51 XXX Workaround for the "ld buserr with new crt0.o" problem, suggested by tls.
Should be backed out once the real problem has been solved.
1997-10-14 11:45:25 +00:00
mrg 395c20ea27 clean up WARNS on the alpha. 1997-10-10 08:45:29 +00:00
lukem 6fffd559bd WARNSify (not yet tested on all platforms yet) 1997-10-09 12:29:21 +00:00
lukem 5b0e18c4e4 WARNSify 1997-10-09 07:07:14 +00:00
mark fffd1f9f6b Major overhaul and update to support dynamic loading and linking. 1997-10-05 23:12:21 +00:00
mark 8ae060d066 Overhauled and brought up to date. 1997-10-05 23:10:36 +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
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