Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Jun 1998 12:40:58 +0300 (EEST)
From:      Vladimir Kushnir <kushn@mail.kar.net>
To:        freebsd-current@FreeBSD.ORG
Subject:   modload doesn't work when OBJFORMAT=elf?
Message-ID:  <Pine.BSF.3.96.980603121722.269A-100000@kushnir.kiev.ua>

next in thread | raw e-mail | index | archive | help
Well, the subject sais it: modload passes *_mod.o to /usr/bin/ld, which
in turn calls /usr/libexec/elf/ld. Of course, this last can't link aout
kernel and aout LKM. (BTW, why not make binutils supporting both
a.out-i386-freebsd and elf32-i386? They seem to be able to do this, though
this would somewhat increase their size, but not by much).

Anyway, here's one more of the hardcoded paths:
/usr/src/sbin/modload/pathnames.h:

#define _PATH_LD        "/usr/bin/ld"

As an interim cure (sofisticated next to a stone ax, but works, until
both kernel and LKMs are all elf)

#define _PATH_LD        "/usr/libexec/aout/ld"

Regards,
Vladimir



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.980603121722.269A-100000>