mycroft
94581370f5
The ELF ABI declares that argc must fill an `argument slot'. Make it so.
...
For __sparc_v9__ only, do a hack to make executables work temporarily before
and after the kernel is switched.
2000-07-26 15:40:07 +00:00
mycroft
209e309de1
Always dereference argc as an int.
2000-07-26 02:11:44 +00:00
mycroft
0ef3f52396
Make this work before and after the kernel is switched to DTRT with argc.
...
This is temporary, only to make the flag day less painful.
2000-07-25 21:42:55 +00:00
eeh
f310f1fd32
Handle dynamic binaries too.
2000-07-18 22:35:45 +00:00
matt
d71ca2d66e
__syscall takes a quad_t as its first argument, not an int.
...
_strrchr takes an int (due to promotion) as its third arg.
don't print the null byte at the end of string.
error messages should end with a linefeed.
2000-07-03 23:01:01 +00:00
matt
06f872af34
Use the ___start etc.
2000-07-03 03:56:56 +00:00
christos
3d65200a80
remove initialization of mainprog_obj from here; it is too late for .ini
...
sections that want to use dlopen(3).
2000-06-16 20:52:49 +00:00
cgd
c39575e265
sweep of my licenses for consistency. (no functional changes) These
...
files have copyright held by people in addition to myself. (I did the
original work, they copied it, enhanced it, and added their copyright
to the derivative work.) Their approval has been given re: the license
change.
2000-06-15 16:48:28 +00:00
cgd
c85d2eb42b
sweep of my licenses for consistency. (no functional changes) These
...
files have copyright held by people in addition to myself. (I did the
original work, they copied it, enhanced it, and added their copyright
to the derivative work.) Their approval has been given re: the license
change.
2000-06-14 22:52:37 +00:00
cgd
db755e7c76
sweep of my licenses (userland files w/o only my copyright) for
...
consistency. (no functional changes)
2000-06-14 17:24:02 +00:00
thorpej
193ccba813
Normalize copyright notice.
2000-06-14 16:09:54 +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
bjh21
6c97e2bd78
Initial commit of arm26 port
2000-05-09 21:55:44 +00:00
dmcmahill
7348e432f3
change -fpic to -fPIC. Among other things this will let sparc shared
...
c++ libraries built with pkglibtool (which uses -fPIC) work.
change approved by mycroft.
2000-04-29 17:42:46 +00:00
minoura
78b105698a
Move dl* function definitions to libc on ELF.
...
Based on the patch supplied by Takuya Shiozaki <tshiozak@astec.co.jp>.
See http://mail-index.netbsd.org/tech-userlevel/2000/02/23/0000.html .
2000-04-02 15:35:47 +00:00
kristerw
33c172d1c1
Const poisoning of dladdr (so that things build after the dlfcn.h change)
2000-02-09 22:41:53 +00:00
scottb
076e309d3e
change first argument of dladdr to const.
2000-02-08 16:22:59 +00:00
scottb
c0cf420b69
add hooks to support the dladdr function.
2000-02-07 21:40:40 +00:00
mycroft
c29a577031
Adjust for .mk file changes.
2000-01-22 19:37:57 +00:00
eeh
818cfe2268
Workaround for gcc 2.96 bugs.
1999-12-30 15:34:47 +00:00
lukem
fe5a2bf74b
remove the ``static'' from `static void __start()' and `static void ___start()'
...
because an overly aggressive gcc -O3 "cleverly" optimizes the functions out.
noted in [port-i386/8493], but seen in other ports as well.
1999-11-02 10:07:12 +00:00
lukem
fe0968e395
wrap line
1999-11-02 10:03:44 +00:00
msaitoh
2cf9cd31f6
add csu for sh3
1999-10-07 11:56:28 +00:00
mrg
6f967b5c4a
add a _start symbol ld(1) can find.
1999-08-24 08:55:27 +00:00
kleink
a363a1a034
* __start -> _start, ___start -> __start
...
* Bump _start() alignment to 4 bytes.
1999-08-23 09:23:06 +00:00
kleink
fc5695807b
Bump _start() alignment to 4 bytes.
1999-08-23 09:10:23 +00:00
matt
741f18b695
Initial VAX ELF32 support (mostly untested). It's checked primarily for
...
testing and archival for now. I don't expect anyone to work with it
since the binutils and gas changes are still pending. But you got to
crawl before you walk.
1999-08-21 19:26:18 +00:00
kleink
b9f86eb3a1
Namespace cleanup: move runtime linker interface into implementation namespace
...
and provide weak aliases.
1999-08-19 20:52:36 +00:00
fvdl
3cf76a4d16
Add _start (as well as __start). It's the default start symbol expected
...
by ld for the i386 ELF case.
1999-07-07 22:59:47 +00:00
simonb
6bf3aa19f9
More trailing white space.
1999-07-02 15:46:05 +00:00
thorpej
3787c5c3d8
MAP_COPY -> MAP_PRIVATE
1999-06-17 21:09:47 +00:00
kleink
196becef81
Declare dlerror()'s return value __aconst.
1999-05-19 14:50:49 +00:00
kleink
28d76befd4
When calling dlerror() in a non-dynamically linked executable, return a pointer
...
to an error string rather than NULL (`no errors occured) to indicate the cause
of failure return values of other dl*() interfaces.
1999-05-19 14:47:12 +00:00
kleink
faa2202a49
Use __weak_extern() instead of an asm statement.
1999-05-02 18:26:43 +00:00
simonb
45c86b888b
Instead of rolling our own "install" target, use FILES/FILESDIR and
...
LINKS to that things like "make install UPDATE=" work properly.
1999-04-03 16:39:31 +00:00
simonb
38ca0e64c8
s;/usr/lib;${LIBDIR};
1999-04-03 16:28:49 +00:00
tsubai
5f1a262044
Fix typo. (COPT --> COPTS)
1999-04-02 12:09:44 +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
thorpej
84065de42a
Not used.
1999-03-19 23:00:16 +00:00
thorpej
216dc58aac
Oops, revert previous; thinko.
1999-03-19 22:58:04 +00:00
thorpej
3a25f9286e
Moved via repository copy to common_aout/
1999-03-19 22:56:01 +00:00
thorpej
d72bf587c9
Ajust for new location of a.out crt0 Makefile fragment.
1999-03-19 22:54:40 +00:00
thorpej
e9c1df5e9e
Fix -I path.
1999-03-19 22:50:20 +00:00
thorpej
faaf65e09f
Go ahead and built c++rt0.o on all non-ELF platforms (i.e. including arm32;
...
the hacks to make this work have been committed).
1999-03-19 22:42:16 +00:00
nisimura
00ab30d02b
- Make this compilable.
1999-03-19 01:17:41 +00:00