diff options
author | Richard Lowe <richlowe@richlowe.net> | 2016-10-20 15:34:06 -0400 |
---|---|---|
committer | Richard Lowe <richlowe@richlowe.net> | 2019-04-24 16:59:38 +0000 |
commit | b6a0e2cd4ce8d91fe9dc750c44e662d7c7e5fb8e (patch) | |
tree | 1424a261409d926f112f36d54d9e8acf297a1cbb /usr/src/cmd/file/file.c | |
parent | ab65fd2a6cf8b63577d26411f2ea4b628591d56d (diff) | |
download | illumos-joyent-b6a0e2cd4ce8d91fe9dc750c44e662d7c7e5fb8e.tar.gz |
10366 ld(1) should support GNU-style linker sets
10581 ld(1) should know kernel modules are a thing
Reviewed by: Toomas Soome <tsoome@me.com>
Reviewed by: Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org>
Reviewed by: Robert Mustacchi <rm@joyent.com>
Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr/src/cmd/file/file.c')
-rw-r--r-- | usr/src/cmd/file/file.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/usr/src/cmd/file/file.c b/usr/src/cmd/file/file.c index 64379f3919..a2f00abc16 100644 --- a/usr/src/cmd/file/file.c +++ b/usr/src/cmd/file/file.c @@ -19,7 +19,7 @@ * CDDL HEADER END */ /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ -/* All Rights Reserved */ +/* All Rights Reserved */ /* Copyright (c) 1987, 1988 Microsoft Corporation */ @@ -614,7 +614,7 @@ spcl: * be applied before context-sensitive tests, to avoid * false context-sensitive matches. * - * Returns -1 on error which should result in error (non-zero) + * Returns -1 on error which should result in error (non-zero) * exit status for the file utility. * Returns 0 if no matching file type found. * Returns 1 if matching file type found. @@ -1330,6 +1330,10 @@ elf_check(char *file) if (version == 1) (void) printf(" %s %d", gettext("Version"), version); + if (EInfo.kmod) { + (void) printf(", %s", gettext("kernel module")); + } + /* Print Flags */ print_elf_flags(EInfo); @@ -1483,9 +1487,10 @@ ascom(void) return (1); } +/* look for "1hddddd" where d is a digit */ static int sccs(void) -{ /* look for "1hddddd" where d is a digit */ +{ register int j; if (fbuf[0] == 1 && fbuf[1] == 'h') { |