summaryrefslogtreecommitdiffstats
path: root/usr.sbin/crunchgen (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Build install media with -fno-asynchronous-unwind-tables to furtherjsg2021-03-101-1/+2
| | | | | | | reduce size. Allows a clang 11 amd64 release to complete without overflowing the floppy image. ok kettenis@ deraadt@
* distrib: remove .comment section systematicallysemarie2021-02-131-2/+2
| | | | | | | remove this section as part of crunchgen generated commands. it avoids calling "strip -R .comment" for some but not all architectures. ok deraadt@ danj@
* Ensure that the install media are built with a consistent set ofnaddy2018-10-181-2/+5
| | | | | | | | | | compiler flags. Pass DIST_CFLAGS from the crunchgen-generated .mk file. Compile the install media with -fno-unwind-tables to avoid emitting .eh_frame sections. This saves substantial space on amd64. with/ok kettenis@
* chdir to the target directory, run make there and fchdir back after.henning2018-02-061-4/+22
| | | | | allows Makefiles with ${.CURDIR} constructs to work with crunchgen. pointed out by Holger Mikolon, input from theo, ok theo millert
* Prefer <elf.h> to the non portable <sys/exec_elf.h>.mpi2017-10-292-4/+4
| | | | ok jca@, deraadt@
* insist on -Oz in the *.mk fileespie2017-07-271-1/+2
| | | | | | (note it's *after* the normal flags, so it will pre-empt a -O2) okay deraadt@
* Mute clang's zeal for whining by providing prototypes.deraadt2017-07-272-3/+7
|
* missing .Fn markup for main(); found with mandoc -Tlintschwarze2017-06-111-3/+5
|
* Make object-in-archive-used identification portable to lld: use --traceguenther2017-02-281-2/+2
| | | | | | | | | instead of -M and transform the output to a common /path/to/archive.a(object.o) syntax. problem noted by jsg@ ok kettenis@ jsg@
* Copyright notices don't belong in the displayed text of manual pages,schwarze2017-01-271-5/+4
| | | | | | so delete it. Of course, the notice is still present as a comment in the source code of the page, at the place where it belongs. Found because it also violated "new sentence, new line".
* Restore support for 'instbin program args...'guenther2016-05-201-12/+15
| | | | problem noted by and ok deraadt@
* Use __progname instead of manually handling argv[0].tobias2015-12-061-8/+5
| | | | ok deraadt, mmcc, tedu
* exit() after perror() for pledge failure. Perhaps this got introducedderaadt2015-11-111-2/+4
| | | | | as a test idiom, either when pledge was young or during the transition to strings.... dunno
* Avoid integer overflow with very large files.tobias2015-10-181-3/+4
| | | | ok millert
* pledge "stdio rpath wpath cpath proc exec". creates files throughoutderaadt2015-10-131-1/+4
| | | | it's lifetime, and often runs a pipe through "cpp"
* stdlib.h is in scope; do not cast malloc/calloc/realloc*deraadt2015-08-202-5/+5
| | | | ok millert krw
* The world is ELF: use <sys/exec_elf.h> instead of <a.out.h> or <sys/exec.h>guenther2015-01-182-26/+23
| | | | | | | | Use a better test for an input being ELF: struct exec is dead and there are defines for the ELF magic. Reorder #includes and do some whitespace cleanup. Oh, and don't lead the fd if an input file isn't ELF. ok deraadt@
* Replace <sys/param.h> with <limits.h> and other less dirty headers wherederaadt2015-01-161-17/+18
| | | | | | | | | possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
* Reduce instances of `` '' in manuals.bentley2014-11-151-3/+5
| | | | | | | | | | | | troff displays these as typographic quotes, but nroff implementations almost always print them literally, which rarely has the intended effect with modern fonts, even in stock xterm. These uses of `` '' can be replaced either with more semantic alternatives or with Dq, which prints typographic quotes in a UTF-8 locale (but will automatically fall back to `` '' in an ASCII locale). improvements and ok schwarze@
* Use errc/warnc to simplify code.guenther2014-05-201-2/+2
| | | | | | Also, in 'ftp', always put the error message last, after the hostname/ipaddr. ok jsing@ krw@ millert@
* Zap some globals and a TODO missed in the a.out purge.guenther2014-03-161-22/+1
|
* Create cleaner & less noisy makefiles, now that we've been usingderaadt2014-01-111-42/+4
| | | | this for 20 years. We don't need to see the splatter as much anymore.
* just a little TLCderaadt2014-01-111-11/+8
|
* yet more unsigned char casts for ctypederaadt2013-11-231-7/+7
| | | | checked by jca
* add missing protosderaadt2013-11-122-5/+10
|
* tedu ecoff supportderaadt2013-10-143-79/+3
|
* Using 'cc -o /dev/null' has weird side-effects as root, so use a real fileguenther2013-10-141-2/+2
| | | | problem noted by deraadt@
* handle DESTDIR; with guentherderaadt2013-10-141-2/+2
|
* Use the new DIST_LIB/DIST_OBJS hooks to make it possible to link crunchedguenther2013-10-131-3/+31
| | | | | | | binaries against libraries compiled with smaller objects. Determination of which objects to include done by linking once and checking the link map. SRCLIBDIR must be set by the calling makefile to /usr/src/lib for this to have any effect
* Death to a.out bits!guenther2013-10-131-96/+1
| | | | ok deraadt@ miod@
* some Bx/Ox conversion;jmc2013-08-141-4/+7
| | | | From: Jan Stary
* use .Mt for email addresses; from Jan Stary <hans at stare dot cz>; ok jmc@schwarze2013-07-161-4/+4
|
* Using the currently chosen (and in my opinion insane) abstraction, passderaadt2012-08-291-3/+4
| | | | -nopie to the linker if needed; ok pascal
* Build crunched binaries with -fno-pie.pascal2012-08-221-1/+3
| | | | ok deraadt@
* ansideraadt2012-05-301-2/+2
|
* missing headerderaadt2011-11-251-1/+2
|
* .Ek in the right place, or SYNOPSIS blows up;jmc2010-08-081-3/+3
|
* delete unused variablederaadt2010-07-201-4/+1
|
* Fix overflow bug found by Holger Mikolon, thanks.drahn2009-12-081-3/+6
| | | | committed slightly different fix.
* Change crunchgen to mangle names in sequence instead of randomly,drahn2009-12-046-34/+197
| | | | | | save the sequence numbers between runs, currently uses file 'mangledata' this may be changed to be specified on the command line later. Requested by Theo.
* that is not a small hack, it is big and gruesome and has very bad effectsderaadt2009-11-021-5/+4
|
* under certain conditions (srcdir defined, no objdir defined) crunchgenfkr2009-10-071-1/+9
| | | | | | | would emit a false .mk file, which contains "(null)" for the Makefile name due to a null pointer. Make sure, p->mf_name is set in this case. ok deraadt@
* stop gcc from whiningderaadt2009-07-211-2/+2
|
* zap trailing whitespace;jmc2008-11-241-2/+2
|
* Change mips detection in crunchgen from ifdef to command line flagdrahn2008-11-243-38/+42
| | | | ok deraadt@, fkr@, rainer@. manpage cleanup thanks to jmc@
* clean warnings on all architecturesderaadt2008-09-081-3/+5
|
* - document -hjmc2008-08-232-14/+14
| | | | | - (re)organise the page a little - zap second "usage:" string from usage()
* make it section 8deraadt2008-08-222-4/+4
|
* merge crunchide into crunchgen as the -h flag. this is not yet done thederaadt2008-08-225-124/+57
| | | | nicest way since there is lot of code that has to churn, but it works.
* Merge crunchgen & crunchhide (using name checking), and move to usr.sbinderaadt2008-08-2210-0/+2505
next step is to not install it as two programs, but be even more clever