diff options
author | Tobias Weingartner <weingart@cvs.openbsd.org> | 1997-09-17 00:56:43 +0000 |
---|---|---|
committer | Tobias Weingartner <weingart@cvs.openbsd.org> | 1997-09-17 00:56:43 +0000 |
commit | 0e67689f899cbcf8c6f583672cd9d89f9489fc52 (patch) | |
tree | c7ef5ebba5caec327d937bd63565de77963dd0ae /sbin/modload | |
parent | ae78b02b5658b08941e7458e9d021e1a02c2561d (diff) |
Fix up the non alpha && mips section, back out change to print
offset of lkm in hex, as this number gets passed by apinstall to
mknod. (mknod does not understand hex too well).
Diffstat (limited to 'sbin/modload')
-rw-r--r-- | sbin/modload/modload.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sbin/modload/modload.c b/sbin/modload/modload.c index aafeddb2609..d455101deeb 100644 --- a/sbin/modload/modload.c +++ b/sbin/modload/modload.c @@ -1,4 +1,4 @@ -/* $OpenBSD: modload.c,v 1.16 1997/09/11 11:49:51 deraadt Exp $ */ +/* $OpenBSD: modload.c,v 1.17 1997/09/17 00:56:42 weingart Exp $ */ /* $NetBSD: modload.c,v 1.13 1995/05/28 05:21:58 jtc Exp $ */ /* @@ -74,9 +74,9 @@ int dounlink = 0; #define LDTEXTSTART "-Ttext" #define LDSYMPREFIX "" #else -#define LDSYMTABLE "-R" -#define LDTEXTSTART "-Ttext" -#define LDSYMPREFIX "" +#define LDSYMTABLE "-A" +#define LDTEXTSTART "-T" +#define LDSYMPREFIX "_" #define MAGICCHECK #endif @@ -513,7 +513,7 @@ main(argc, argv) err(15, "error fetching module stats for post-install"); sprintf(id, "%d", sbuf.id); sprintf(type, "0x%x", sbuf.type); - sprintf(offset, "%lx", sbuf.offset); + sprintf(offset, "%d", sbuf.offset); /* * XXX * The modload docs say that drivers can install bdevsw & |