summaryrefslogtreecommitdiff
path: root/usr.sbin/kldxref/kldxref.c
Commit message (Collapse)AuthorAgeFilesLines
* Copy releng/7.3 to release/7.3.0 to mark 7.3-RELEASE.release/7.3.0_cvsKen Smith2010-03-211-1/+1
| | | | | | Approved by: re (implicit) This commit was manufactured to restore the state of the 7.3-RELEASE image.
* MFC: rev. 185475, 186824, 186826, 186827Luigi Rizzo2009-01-131-80/+77
| | | | | | | | | | | | | | | various cleanups including: + 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 + Make the linker.hints file have mode 644 instead of 600. + fix a couple of innocuous compiler warnings + correct description of how a string is stored, fix a few typos and reference the kernel file which processes this info. Notes: svn path=/stable/7/; revision=187201
* Use safe strlcpy rather than unsafe strncpy. After marcel's last fix,Warner Losh2006-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.... Notes: svn path=/head/; revision=161004
* Fix (static) buffer overflow bug. The dest buffer is of size MAXPATHLEN,Marcel Moolenaar2006-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. Notes: svn path=/head/; revision=160982
* Change maketempfile() to return a FILE* so as to eliminate the fopen()Marcel Moolenaar2006-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. Notes: svn path=/head/; revision=160818
* Skip .symbols files.Ruslan Ermilov2005-11-111-1/+4
| | | | Notes: svn path=/head/; revision=152302
* Add support for reading ELF relocatable object file format modules.Ian Dowse2004-08-271-3/+6
| | | | Notes: svn path=/head/; revision=134361
* Call the file format specific code through a table of functionIan Dowse2004-08-271-16/+18
| | | | | | | | pointers and remove knowledge of the file format from kldxref.c. This will make it possible to support more than one file format. Notes: svn path=/head/; revision=134358
* Fixed manpage's synopsis, and synchronized it with the program's usage().Ruslan Ermilov2004-06-011-1/+1
| | | | Notes: svn path=/head/; revision=129930
* Check that specified in the command line path is actually a directory,Maxim Sobolev2004-04-301-0/+9
| | | | | | | otherwise we are risking to coredump later on. Notes: svn path=/head/; revision=128742
* Remove bogus (void **) casts. This unbreaks the -O2 build.Dag-Erling Smørgrav2004-03-151-3/+3
| | | | Notes: svn path=/head/; revision=127029
* Fix kldxref on sparc64 by allowing non-trivial relocations to be performedJake Burkholder2003-01-211-2/+3
| | | | | | | | | | | | 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 Notes: svn path=/head/; revision=109607
* Usage style sweep: spell "usage" with a small 'u'.Dag-Erling Smørgrav2002-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}/. Notes: svn path=/head/; revision=95258
* Remove unnecessary machine/bootinfo.h includes.John Baldwin2002-01-031-1/+0
| | | | | | | Submitted by: jake Notes: svn path=/head/; revision=88853
* WARNS=2 cleanup.Mike Heffner2001-12-091-1/+2
| | | | | | | | PR: bin/32567 MFC after: 2 weeks Notes: svn path=/head/; revision=87551
* Add kldxref(8), for maintaining the linker.hints file for translatingPeter Wemm2001-09-111-0/+346
module->pathname.ko. It supports only ELF for now. Submitted by: bp (with some minor tweaks) Notes: svn path=/head/; revision=83322