summaryrefslogtreecommitdiffstats
path: root/usr.sbin/kldxref
Commit message (Collapse)AuthorAgeFilesLines
* MFC r256650: kldxref: Add static keyword to the new function only used in thejilles2013-12-221-1/+1
| | | | | | same file. The WARNS level is not such that the omission broke the build.
* kldxref: Do not depend on the directory order.jilles2013-10-041-1/+11
| | | | | | | | | | | | | | | | Sort the filenames to get a consistent result between machines of the same architecture. Also, sort FTS_D entries after other entries so kldxref -R works properly in the uncommon case that a directory contains both subdirectories and modules. Previously, this may have happened to work, depending on the order of files in the directory. PR: bin/182098 Submitted by: Derek Schrock (original version) Tested by: Derek Schrock Approved by: re (delphij) MFC after: 1 week
* Use calloc().delphij2013-06-051-2/+1
| | | | MFC after: 2 weeks
* Remove unneeded reference to link.h (sys/link_elf.h).delphij2013-06-055-5/+0
| | | | MFC after: 2 weeks
* Clarify a warning message.kientzle2012-10-291-1/+2
|
* Remove variables which are initialized but never used thereafter reported by ↵eadler2012-06-191-3/+1
| | | | | | | gcc46 warning Approved by: cperciva MFC After: 3 days
* Reencode files to UTF-8. Drop CP1252 em-dash.uqs2011-12-301-1/+1
|
* Repair some build breakage introduced in r211725 and garbage collect somenwhitehorn2010-08-281-1/+1
| | | | code made obsolete in the same commit.
* MFtbemd:imp2010-08-231-2/+2
| | | | | Prefer MACHNE_CPUARCH to MACHINE_ARCH in most contexts where you want to test of all the CPUs of a given family conform.
* various cleanups including:luigi2009-01-061-82/+77
| | | | | | | | | + check a possible buffer overflow when creating a temp file, submitted by Christoph Mallon + remove stale struct definitions + clarify the use of dflag and remove useless checks MFC after: 3 days
* fix a couple of innocuous compiler warningsluigi2009-01-062-3/+4
| | | | MFC after: 3 days
* correct description of how a string is stored, fix a fewluigi2009-01-061-5/+10
| | | | | | | | | typos and reference the kernel file which processes this info. All in all, the content of this file should be moved to kldxref.c or to the kld(4) manpage. MFC after: 3 days
* Make the linker.hints file have mode 644 instead of 600.luigi2008-11-301-0/+2
| | | | | | | There is nothing secret in the file, and the missing read permission breaks diskless operation. MFC after: 4 weeks
* These are the things that the tinderbox has problems with because itjb2007-11-201-0/+1
| | | | | | | | doesn't use the default CFLAGS which contain -fno-strict-aliasing. Until the code is cleaned up, just add -fno-strict-aliasing to the CFLAGS of these for the tinderboxes' sake, allowing the rest of the tree to have -Werror enabled again.
* Use safe strlcpy rather than unsafe strncpy. After marcel's last fix,imp2006-08-051-4/+2
| | | | | | there was still one overflow possible. strlcpy is faster anyway because it doesn't unexpectedly zero the entire length of the string when copying short strings....
* Build shared on PowerPC now that the bug has been found and fixed.marcel2006-08-041-4/+0
|
* Fix (static) buffer overflow bug. The dest buffer is of size MAXPATHLEN,marcel2006-08-041-1/+1
| | | | | | so dest[MAXPATHLEN] falls outside the buffer. This bug corrupted arenas[0] defined in libc's malloc.c on PowerPC when kldxref is shared, which triggered a delayed SIGSERV.
* Use NO_SHARED=YES to force a static link.marcel2006-07-301-1/+1
| | | | Pointed out by: ru@
* Link kldxref(8) static on PowerPC to work around a SIGSEGV thatmarcel2006-07-291-0/+4
| | | | | | | cannot easily be analyzed due to there being no debugger yet. The SIGSEGV only happens when kldxref is linked shared. Since kldxref(8) is needed for a release build, having it not dump core is important.
* Change maketempfile() to return a FILE* so as to eliminate the fopen()marcel2006-07-291-6/+7
| | | | | | | | | | that immediately follows the only call to it. maketempfile() uses mkstemp(), so the temporary file has already been opened and using fopen() again just opens the file twice. This also fixes the invalid mode used on the fopen(). While here, assign NULL to fxref after fclose() because we test for fxref being !NULL to determine if we have the (temporary) hints file open.
* Use posix_memalign() rather than assuming that malloc() provides adequatejasone2006-01-121-5/+7
| | | | | | alignment. Approved by: markm (mentor)
* Make our ELF64 type definitions match standards. In particular thismarcel2005-12-187-9/+9
| | | | | | | | | | | | | means: o Remove Elf64_Quarter, o Redefine Elf64_Half to be 16-bit, o Redefine Elf64_Word to be 32-bit, o Add Elf64_Xword and Elf64_Sxword for 64-bit entities, o Use Elf_Size in MI code to abstract the difference between Elf32_Word and Elf64_Word. o Add Elf_Ssize as the signed counterpart of Elf_Size. MFC after: 2 weeks
* Explicitly cast ELF_R_TYPE() to the right type.marcel2005-12-181-1/+1
|
* Skip .symbols files.ru2005-11-111-1/+4
|
* Doh, erase unused variable...grehan2005-03-031-1/+1
|
* PowerPC support for kldxref by handling the PPC-specific relocations.grehan2005-03-021-0/+74
|
* Explicitly pass in the relocation base and data offset into ef_reloc()iedowse2004-08-287-43/+54
| | | | | | rather than relying on a trick that happens to work for the current relocation schemes. Also add some comments and improve variable naming.
* Use a temporary void * variable to work around a strict aliasingiedowse2004-08-271-2/+3
| | | | warning that gcc generates at -O2 and higher.
* Add MD relocation support for amd64 and i386 platforms. The no-opiedowse2004-08-272-0/+207
| | | | | | | | | relocation is not sufficient for ELF relocatable object format modules, since accessing the module metadata involves following pointers between different ELF sections. This allows kldxref to correctly build linker.hints on the amd64 platform.
* Add support for reading ELF relocatable object file format modules.iedowse2004-08-273-4/+609
|
* Call the file format specific code through a table of functioniedowse2004-08-275-75/+244
| | | | | pointers and remove knowledge of the file format from kldxref.c. This will make it possible to support more than one file format.
* Fixed manpage's synopsis, and synchronized it with the program's usage().ru2004-06-012-6/+6
|
* Check that specified in the command line path is actually a directory,sobomax2004-04-301-0/+9
| | | | otherwise we are risking to coredump later on.
* Remove bogus (void **) casts. This unbreaks the -O2 build.des2004-03-151-3/+3
|
* I don't normally use my middle name, so remove it from attributions indes2004-01-251-1/+1
| | | | | man pages (though not from copyright notices). While I'm here, add email addresses where appropriate.
* style.Makefile(5)obrien2003-04-041-1/+2
|
* 3rd party modules live in /boot/modules nowadays.ru2003-03-031-1/+1
|
* Fix kldxref on sparc64 by allowing non-trivial relocations to be performedjake2003-01-216-3/+239
| | | | | | | | | on variables read out of raw kld files. Unlike other platforms the value will be in an Elf_Rela, not in the data section of the elf file. Submitted by: Hartmut Brandt <brandt@fokus.gmd.de> PR: 46730 Tested on: alpha (obrien), i386, sparc64
* This is a userland tool, not a kernel component or libstand client.peter2002-07-171-5/+5
|
* The .Nm utilitycharnier2002-07-141-3/+3
|
* Usage style sweep: spell "usage" with a small 'u'.des2002-04-221-1/+1
| | | | | Also change one case of blatant __progname abuse (several more remain) This commit does not touch anything in src/{contrib,crypto,gnu}/.
* Make kldxref work for Elf64 (which has 32 bit hash tables)peter2002-04-112-7/+7
|
* Remove unnecessary machine/bootinfo.h includes.jhb2002-01-032-2/+0
| | | | Submitted by: jake
* Reorder WARNS line for style.mikeh2001-12-101-2/+1
| | | | Pointed out by: bde
* WARNS=2 cleanup.mikeh2001-12-093-3/+16
| | | | | PR: bin/32567 MFC after: 2 weeks
* mdoc(7) police: oops, didn't catch this one without ispell(1).ru2001-11-221-1/+1
|
* mdoc(7) police: tiny markup fixes.ru2001-11-221-5/+6
|
* Write a real man page.des2001-10-122-26/+95
|
* Add kldxref(8), for maintaining the linker.hints file for translatingpeter2001-09-116-0/+837
module->pathname.ko. It supports only ELF for now. Submitted by: bp (with some minor tweaks)
OpenPOWER on IntegriCloud