aboutsummaryrefslogtreecommitdiff
path: root/libexec/rtld-aout
diff options
context:
space:
mode:
authorJohn Polstra <jdp@FreeBSD.org>1997-01-12 19:59:26 +0000
committerJohn Polstra <jdp@FreeBSD.org>1997-01-12 19:59:26 +0000
commitd956f8a38850722427b75d26a8c4cffe1858aa45 (patch)
tree753478946803c08cbc552e7565da7df978468907 /libexec/rtld-aout
parentf08cd1247b110505f28c9819e330847acdf4b458 (diff)
downloadsrc-d956f8a38850722427b75d26a8c4cffe1858aa45.tar.gz
src-d956f8a38850722427b75d26a8c4cffe1858aa45.zip
Use the RTLD_NOW symbol, now that it is defined in <dlfcn.h>.
Notes
Notes: svn path=/head/; revision=21620
Diffstat (limited to 'libexec/rtld-aout')
-rw-r--r--libexec/rtld-aout/rtld.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/libexec/rtld-aout/rtld.c b/libexec/rtld-aout/rtld.c
index 88e5b27c1b42..5ac250f2ede4 100644
--- a/libexec/rtld-aout/rtld.c
+++ b/libexec/rtld-aout/rtld.c
@@ -27,7 +27,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: rtld.c,v 1.40 1996/10/24 16:24:19 jdp Exp $
+ * $Id: rtld.c,v 1.41 1997/01/12 00:16:36 jdp Exp $
*/
#include <sys/param.h>
@@ -41,6 +41,7 @@
#ifndef MAP_COPY
#define MAP_COPY MAP_PRIVATE
#endif
+#include <dlfcn.h>
#include <err.h>
#include <fcntl.h>
#include <a.out.h>
@@ -1830,9 +1831,7 @@ __dlopen(path, mode)
{
struct so_map *old_tail = link_map_tail;
struct so_map *smp;
- int bind_now = mode == 2;
- /* XXX - s/2/RTLD_NOW/ in the above line, after putting the necessary
- defines into <dlfcn.h> and testing for problems. */
+ int bind_now = mode == RTLD_NOW;
/*
* path == NULL is handled by map_object()