summaryrefslogtreecommitdiff
path: root/usr.sbin/crunchgen
AgeCommit message (Collapse)Author
2021-02-13distrib: remove .comment section systematicallySebastien Marie
remove this section as part of crunchgen generated commands. it avoids calling "strip -R .comment" for some but not all architectures. ok deraadt@ danj@
2018-10-18Ensure that the install media are built with a consistent set ofChristian Weisgerber
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@
2018-02-06chdir to the target directory, run make there and fchdir back after.Henning Brauer
allows Makefiles with ${.CURDIR} constructs to work with crunchgen. pointed out by Holger Mikolon, input from theo, ok theo millert
2017-10-29Prefer <elf.h> to the non portable <sys/exec_elf.h>.Martin Pieuchot
ok jca@, deraadt@
2017-07-27insist on -Oz in the *.mk fileMarc Espie
(note it's *after* the normal flags, so it will pre-empt a -O2) okay deraadt@
2017-07-27Mute clang's zeal for whining by providing prototypes.Theo de Raadt
2017-06-11missing .Fn markup for main(); found with mandoc -TlintIngo Schwarze
2017-02-28Make object-in-archive-used identification portable to lld: use --tracePhilip Guenther
instead of -M and transform the output to a common /path/to/archive.a(object.o) syntax. problem noted by jsg@ ok kettenis@ jsg@
2017-01-27Copyright notices don't belong in the displayed text of manual pages,Ingo Schwarze
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".
2016-05-20Restore support for 'instbin program args...'Philip Guenther
problem noted by and ok deraadt@
2015-12-06Use __progname instead of manually handling argv[0].Tobias Stoeckmann
ok deraadt, mmcc, tedu
2015-11-11exit() after perror() for pledge failure. Perhaps this got introducedTheo de Raadt
as a test idiom, either when pledge was young or during the transition to strings.... dunno
2015-10-18Avoid integer overflow with very large files.Tobias Stoeckmann
ok millert
2015-10-13pledge "stdio rpath wpath cpath proc exec". creates files throughoutTheo de Raadt
it's lifetime, and often runs a pipe through "cpp"
2015-08-20stdlib.h is in scope; do not cast malloc/calloc/realloc*Theo de Raadt
ok millert krw
2015-01-18The world is ELF: use <sys/exec_elf.h> instead of <a.out.h> or <sys/exec.h>Philip Guenther
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@
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
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)
2014-11-15Reduce instances of `` '' in manuals.Anthony J. Bentley
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@
2014-05-20Use errc/warnc to simplify code.Philip Guenther
Also, in 'ftp', always put the error message last, after the hostname/ipaddr. ok jsing@ krw@ millert@
2014-03-16Zap some globals and a TODO missed in the a.out purge.Philip Guenther
2014-01-11Create cleaner & less noisy makefiles, now that we've been usingTheo de Raadt
this for 20 years. We don't need to see the splatter as much anymore.
2014-01-11just a little TLCTheo de Raadt
2013-11-23yet more unsigned char casts for ctypeTheo de Raadt
checked by jca
2013-11-12add missing protosTheo de Raadt
2013-10-14tedu ecoff supportTheo de Raadt
2013-10-14Using 'cc -o /dev/null' has weird side-effects as root, so use a real filePhilip Guenther
problem noted by deraadt@
2013-10-14handle DESTDIR; with guentherTheo de Raadt
2013-10-13Use the new DIST_LIB/DIST_OBJS hooks to make it possible to link crunchedPhilip Guenther
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
2013-10-13Death to a.out bits!Philip Guenther
ok deraadt@ miod@
2013-08-14some Bx/Ox conversion;Jason McIntyre
From: Jan Stary
2013-07-16use .Mt for email addresses; from Jan Stary <hans at stare dot cz>; ok jmc@Ingo Schwarze
2012-08-29Using the currently chosen (and in my opinion insane) abstraction, passTheo de Raadt
-nopie to the linker if needed; ok pascal
2012-08-22Build crunched binaries with -fno-pie.Pascal Stumpf
ok deraadt@
2012-05-30ansiTheo de Raadt
2011-11-25missing headerTheo de Raadt
2010-08-08.Ek in the right place, or SYNOPSIS blows up;Jason McIntyre
2010-07-20delete unused variableTheo de Raadt
2009-12-08Fix overflow bug found by Holger Mikolon, thanks.Dale Rahn
committed slightly different fix.
2009-12-04Change crunchgen to mangle names in sequence instead of randomly,Dale Rahn
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.
2009-11-02that is not a small hack, it is big and gruesome and has very bad effectsTheo de Raadt
2009-10-07under certain conditions (srcdir defined, no objdir defined) crunchgenFelix Kronlage
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@
2009-07-21stop gcc from whiningTheo de Raadt
2008-11-24zap trailing whitespace;Jason McIntyre
2008-11-24Change mips detection in crunchgen from ifdef to command line flagDale Rahn
ok deraadt@, fkr@, rainer@. manpage cleanup thanks to jmc@
2008-09-08clean warnings on all architecturesTheo de Raadt
2008-08-23- document -hJason McIntyre
- (re)organise the page a little - zap second "usage:" string from usage()
2008-08-22make it section 8Theo de Raadt
2008-08-22merge crunchide into crunchgen as the -h flag. this is not yet done theTheo de Raadt
nicest way since there is lot of code that has to churn, but it works.
2008-08-22Merge crunchgen & crunchhide (using name checking), and move to usr.sbinTheo de Raadt
next step is to not install it as two programs, but be even more clever