kleink
76bc8071eb
Clear the error indicator after retrieval (xref. dlerror(3)).
1998-05-30 18:28:31 +00:00
tv
b05a04267a
In case NOPICINSTALL is set, get -lc_pic from src/lib/libc/(objdirname).
1998-05-21 00:31:05 +00:00
pk
294ed94908
Optimize symbol/string table access slightly by precomputing their
...
locations at load time. These values don't change once the object is loaded.
1998-05-19 12:15:38 +00:00
thorpej
dd26162d11
Need <dlfcn.h> for Dl_info.
1998-05-14 01:55:28 +00:00
pk
d123bc84d4
Implement `dladdr()': find nearest symbol given an address.
1998-05-12 21:22:28 +00:00
pk
79bd77e1cc
Add `dladdr()' rtld entry point.
1998-05-12 21:21:21 +00:00
mycroft
ab8a4c5234
Allow a non-RTLD_GLOBAL object to refer to symbols in itself.
1998-03-26 23:33:12 +00:00
pk
d47d43b956
Use file size from fstat(2) to map the hints file, instead of fiddling
...
with incremental mmap()'s. Squashes a bug which caused only the first
page of the hints file to unmapped.
1998-03-18 23:21:46 +00:00
pk
5ea8bb6d05
Implement RTLD_GLOBAL dlopen(3) flag.
...
Rename internal flags to avoid <dlfcn.h> name space collisions.
1998-03-15 23:10:21 +00:00
pk
b5f4c3ad5e
Check for short hints file (noticed by Chuck Silvers).
1998-03-15 21:24:27 +00:00
mycroft
28ad88290d
Remove spurious extra newline.
1998-03-03 00:36:24 +00:00
mycroft
4462053ab3
Fill in missing (default) mmap(2) flags.
1998-02-20 09:27:18 +00:00
pk
9084f293a7
Print a warning message if we detect that a "copy symbol" has changed
...
size in a shared library. Also, always use our expected size to copy
the item in, on the assumption that doing so generally minimizes the
damage (maybe it's better to just bail out?).
1998-02-17 23:07:33 +00:00
cgd
10cc9f3b70
RCS Id police
1998-01-05 22:00:34 +00:00
pk
f58457ccca
Expand on shared object's `.init' functions a bit, and mention
...
`/usr/lib/c++rt.o'.
1997-11-13 22:25:23 +00:00
lukem
da49bfcda7
use CPPFLAGS instead of CFLAGS
1997-10-25 10:10:19 +00:00
christos
df79fb912d
Add the necessary -I flag to pick up the libc/include/extern.h
1997-07-14 02:56:54 +00:00
pk
72023de51f
Do not free dlopen'ed map structures twice.
...
Plug memory leak when opening the same object mor than once.
1997-06-30 22:10:06 +00:00
pk
7a27a9dd43
Fix typo in free_link_map(); noticed by Mike Grupenhoff.
1997-06-30 20:49:40 +00:00
pk
c682966345
Patch from Chris Demetriou to unmap an object on last dlclose(), which
...
had not be implemented. It would cause an "adress space leak" and, if
the same object would opened multiple time, unwanted relocations.
Re: Comment from Chris:
"The a.out ld.so has some problems with dlclose. It doesn't properly
unmap objects which are dlclosed. That's a known problem (though a
serious one for programs which dlopen then dlclose lots of objects,
because it causes address space exhaustion), but it has a
previously-unknown side-effect.
If a single object is dlopened, then dlclosed, then dlopened _again_,
the relocations will be processed again. That causes obvious
problems."
1997-06-26 20:52:06 +00:00
mrg
586ed80911
install all man pages.
1997-06-23 13:25:41 +00:00
pk
4dd59ab4df
Fix typos (PR#3761).
1997-06-20 20:38:08 +00:00
mikel
0bf17c4d39
fix typo; from Saitoh Masanobu in PR misc/3696.
...
also comma-separate and reorder xrefs.
1997-06-03 04:24:25 +00:00
cjs
7a66732d34
Back out BUILDDIR and NOINSTALL changes.
1997-05-31 21:21:13 +00:00
cjs
097e643f79
Remove an ifdef. Add comment about -nostdlib vs. ELF ld.
1997-05-30 14:06:34 +00:00
veego
d0b955050b
Use the extra LDFLAGS if OBJDIR is defined.
1997-05-30 11:39:01 +00:00
cjs
c21a83a6fb
PR 3670 from SAITOH Masanobu <msaitoh@spa.is.uec.ac.jp>
...
Fix typos.
1997-05-26 00:40:39 +00:00
pk
ff90cf758b
Keep track of `dlsym()' symbol lookup scope differently. There's (currently)
...
only one special case: a NULL argument to dlopen(); return a special
token for that case.
1997-05-03 08:00:02 +00:00
christos
d3d1227320
Ld directory reorganization:
...
- separate out the common files used by rtld ldd ld
- move machine dependent files into arch
- move ld in its own directory
- factor out .PATH and CFLAGS common to all Makefiles
1997-04-16 16:49:28 +00:00
christos
0aad9d4378
Makefile cleanups
1997-03-24 22:02:40 +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
pk
db6c2ee527
<link.h> has moved in with the run-time linker source.
1996-12-23 22:13:03 +00:00
pk
49dc4d2fe7
Deal with weak symbols when looking up in shared libraries.
1996-12-21 21:53:16 +00:00
pk
c51687391d
Actually set the RTLD_DL flag in dlopen'ed shared objects, per PR#2791.
1996-10-06 19:03:32 +00:00
thorpej
7d468e4a0c
Iff __m68k__, use a `slight hack' to determine the magic of the executable
...
we're doing a dynamic link for, and change the page size used for offset
and size calculations if necessary. Allows the same ld.so to be used with
mixed m68k4k and m68k8k executables and libraries.
Thanks a million to Gordon Ross for the help in making this work!
1996-09-10 22:17:51 +00:00
thorpej
648aed921f
RCS id police.
1996-07-03 03:28:09 +00:00
pk
721a11bff8
Use DESTDIR to point at libraries like bsd.prog.mk does (PR#2524).
1996-06-08 22:22:26 +00:00
pk
55d51fbb95
Relax checking of minor version number in `findhint()'. Also use the
...
directories from the hints (v.2) file for directory traversing.
This should take care of PR#1146.
1996-01-14 00:35:17 +00:00
pk
ccc1c895ef
Deal with v.2 hint files (hint srch dirs not yet used).
1996-01-09 00:02:28 +00:00
pk
d98240030c
Define LD_HINTS_VERSION_2:
...
- no longer hash on minor version number in hints file.
- add list of ldconfig(8) search directories.
1996-01-09 00:00:11 +00:00
thorpej
2e1dc487c5
Add -fno-function-cse to PICFLAGS. Without it, Very Bad Things happen
...
when ld.so is compiled with gcc 2.7.2 on the m68k. From
Niklas Hallqvist <niklas@appli.se> in PR #1557 . (Thanks, Nik, for reminding
me about this PR...)
1996-01-02 08:54:28 +00:00
pk
2bb60e32ec
Make dlopen() search for libraries if given a name of the form
...
`lib<name>.so[.xx[.yy]]' (per Erik M. Theisen; PR#1763; patch from PR
used in simplified form).
1995-12-28 17:57:32 +00:00
pk
d04fcadcc2
Fix typo.
1995-10-09 09:24:59 +00:00
pk
9d43c41208
New style RCS IDs.
1995-10-09 00:09:39 +00:00
pk
b74b1d6456
Allow customized trace output, so ldd(1) can be more conveniently used
...
as a filter.
Rearrange cascading stuff: remove two-level limit.
1995-10-08 23:43:28 +00:00
pk
d4fe561742
Interface version 4:
...
implement dlexit() (per Doug Rabson)
get actual rtld path from crt0
pass ld_entry back to crt0 in a better place
1995-09-23 22:46:24 +00:00
pk
fa6e06725c
Define `dlexit()' in crt<=>rtld interface (active in v4).
1995-09-23 22:26:15 +00:00
pk
1a9159c7ba
Check for zero sized BSS to avoid a big no-op syscall (per Mike Hibler).
1995-08-31 22:07:25 +00:00
pk
f6797ed4f1
Install the manual page.
1995-08-25 10:08:45 +00:00
pk
f42537952b
man page for the run-time linker
1995-06-30 12:23:10 +00:00