summaryrefslogtreecommitdiffstats
path: root/usr.sbin/crunch
Commit message (Collapse)AuthorAgeFilesLines
* Back out half of my previous change to support parallel makes.jb2006-11-271-0/+2
| | | | | The generated Makefile clashes with the src/bin/sh/Makefile, causing it to try to use a rule to build something it doesn't need to.
* Fix another parallel make problem with the generated make file.jb2006-11-241-9/+11
| | | | | | | | | | | | | Define the xxx_OBJPATHS earlier and then use it in the xxx_make target because each obj is actually made through that. This allows the crunch to work with -j32 on sun4v. The makefile generated is still poor, though. It really shouldn't use the general 'make all' to do the submakes in the app directories being crunched because each of those objects is listed as a dependency in the generated crunch makefile. Doing that really requires a unique rule to generate them.
* Add the SUBMAKE_TARGETS (like ppp_make) to the dependency listjb2006-11-221-1/+1
| | | | | | for linking the crunched app so that when a parallel make is run (like -j32 on sun4v), the link waits for the sub-make processes to complete.
* Remove reference to mount_fdescfs.rodrigc2006-11-221-2/+2
| | | | Reminded by: ru
* Markup fixes.ru2006-09-291-2/+3
|
* Push removal of mrouted down to the rest of the tree.bms2006-09-291-1/+1
|
* Remove alpha left-overs.ru2006-08-221-1/+1
|
* Bump .Dd before I get told off.ceri2005-12-231-1/+1
|
* Commands like gmirror, graid3, ... and others which use dlopen() to loadceri2005-12-232-4/+95
| | | | | | | | | | | | | | | | | classes from say, /lib/geom, cannot be statically linked completely. Moreover, those shared objects may require other shared objects (i.e. for geom, libraries like -lmd, -lcrypto). The libs_so extension to crunchgen fixes this by allowing some libraries to be linked in dynamically. This requires that a copy of rtld and the shared libraries be made available to the crunched binary, and so is not suitable for all environments. Crunchgen configurations which do not use the 'libs_so' keyword are unaffected and produce identical binaries with and without this commit. Approved by: murray (mentor, in spirit), jhb In collaboration with: Adrian Steinmann <ast at marabu dot ch> MFC After: 6 weeks
* Make our ELF64 type definitions match standards. In particular thismarcel2005-12-181-4/+4
| | | | | | | | | | | | | 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
* In crunchgen(1), when calling make(1), don't redirect stderr to stdout,ru2005-01-201-1/+1
| | | | | | | just rely on the exit status to detect an error. This makes crunchgen(1) safe to use with certain make(1) debugging flags. MFC after: 1 week
* Start the dreaded NOFOO -> NO_FOO conversion.ru2004-12-211-1/+1
| | | | OK'ed by: core
* For variables that are only checked with defined(), don't provideru2004-10-241-1/+1
| | | | any fake value.
* Fix a 4.X -> 5.X upgrade problem: crunchgen used to emit a line 'MAKE=make'harti2004-08-091-7/+7
| | | | | | | | | | | or 'env MAKEOBJDIRPREFIX=... make' depending on the setting of MAKEOBJDIRPREFIX in the environment. In any case this line kills the original value of ${MAKE}. When during buildworld a new make is built (as is the case during the upgrade) this causes a wrong make to be picked up (the first one in the path). Use the same technique as Makefile.inc1: create a MAKEENV variable and a CRUNCHMAKE that calls ${MAKE} with that MAKEENV prefixed. Use CRUNCHMAKE instead of MAKE throughout the generated makefile. This leaves the original ${MAKE} undisturbed.
* Mechanically kill hard sentence breaks.ru2004-07-021-4/+10
|
* Adjust the system endian and a.out headers to be more MI and cross-buildingobrien2004-06-221-0/+1
| | | | | | friendly. Use the systems headers rather than local versions. Reviewed by: ru
* Tell crunchide to deal with arm elf binaries as well.cognet2004-06-061-0/+4
| | | | Rescue can now be built for arm.
* Include <netinet/in.h> for ntoh*() and hton*() prototypes.stefanf2004-05-241-0/+1
| | | | Approved by: das (mentor)
* Fix a bug that caused i386 to produce broken binaries for big-endianru2003-08-081-16/+16
| | | | | 64-bit platforms. (size_t is 32bit on i386, but Elf_Shdr.sh_size is 64bit on SPARC64.)
* Teach crunchide(1) about PowerPC ELF.obrien2003-07-221-0/+4
| | | | | PR: 54526 Submitted by: Stefan Farfeleder <stefan@fafoe.narf.at>
* Add AMD64 support.peter2003-06-032-1/+5
|
* The second chdir(1) that I trimmed is needed tooru2003-04-231-2/+3
| | | | | | if the program has an object directory. Explained by: Tim Kientzle <kientzle@acm.org>
* chdir(1) into a source directory before attempting to determine theru2003-04-221-1/+2
| | | | | | | OBJS list. This is needed to crunch any program that relies on the correct .CURDIR setting, e.g. src/bin/csh. Submitted by: Tim Kientzle <kientzle@acm.org>
* Back out the totally unapproved backout of my commits.obrien2003-03-292-58/+1
|
* Complete the endianness support -- sparc64 can now do i386.ru2003-03-131-16/+10
| | | | | Tested on: sparc64 -> i386, i386 -> sparc64 Debugged by: elfdump(1)
* Part 1/3 of unbreaking cross releases:ru2003-01-292-1/+58
| | | | | | | | | Back out the removal of custom version of endian.h system header. On recent systems, it just falls back to <sys/endian.h>. But on older systems like 5.0-DP1 or 4-STABLE, this private version may be necessary, as crunchide(1) is a cross-tool for "make release". Spotted by: kris, markm
* Use <sys/endian.h> rather than a private verison.obrien2002-12-302-60/+2
| | | | Tested on: sparc64, Athlon[32]
* Bootstrapping aid for 4.0-RELEASE.ru2002-11-131-0/+6
|
* Put author name under .An/Aq.charnier2002-10-161-1/+2
|
* Apply the envp fix to the other call to main() as well.gshapiro2002-08-091-2/+2
| | | | Submitted by: Peter Edwards <pmedwards@eircom.net>
* Pass envp to crunched program's main() routines as some depend on it.gshapiro2002-08-041-2/+4
| | | | | | | | | | | | Note that crunchgen's stub .c programs already have the code to use it: "int _crunched_%s_stub(int argc, char **argv, char **envp)" "{return main(argc,argv,envp);}\" >%s_stub.c\n", Add $FreeBSD$ to allow the commit. Reviewed by: luigi MFC after: 3 days
* mdoc(7) police: markup nit.ru2002-05-301-1/+1
|
* Get all the fruit from makefile.ru2002-05-253-30/+13
|
* Removed dead code.ru2002-05-241-8/+0
|
* Handle endianness. This completes cross-support for sparc64.ru2002-05-242-40/+112
|
* Added support for ia64 and sparc64.ru2002-05-212-0/+10
|
* Make crunchide(1) a cross-tool; needed for cross-arch "make release".ru2002-04-305-7/+17
| | | | Note that a.out is only supported for the non-cross i386 case.
* 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}/.
* Use `The .Nm utility'charnier2002-04-202-12/+21
|
* Add a "special progname lib xxx ..." command to crunchgenluigi2002-03-302-2/+23
| | | | | | | | | so the .lo files can be partially linked against libraries which redefine symbols in the standard libs, or which reference symbols in the objects. Submitted by: Sam Leffler MFC After: 3 days
* ia64 support. Hide a.out support solely under i386. While alpha neverpeter2001-10-232-1/+8
| | | | | was released in a.out form, it does define the a.out data structures. The ia64 port does not.
* Make source crunches work as well as object crunches; broken in thejoe2001-08-171-1/+1
| | | | | | last commit that fixed object crunches. Repeat after me, "no excuses for not testing".
* Make crunchgen crunch pre-built object files again, i.e.:joe2001-08-151-10/+10
| | | | | | | | | | progs prog1 special prog1 objdir ../../prog1/obj special prog1 objs prog1.o This fixes a bug that I introduced around the time of 4.2-release. Reported by: Larry Baird <lab@gta.com>
* mdoc(7) police: s/BSD/.Bx/ where appropriate.ru2001-08-141-2/+6
|
* Perform a major cleanup of the usr.sbin Makefiles.obrien2001-07-205-9/+13
| | | | | These are not perfectly in agreement with each other style-wise, but they are orders of orders of magnitude more consistent style-wise than before.
* Remove GCC'isms in CFLAGS.obrien2001-07-201-1/+1
|
* Remove whitespace at EOL.dd2001-07-151-6/+6
|
* mdoc(7) police: removed HISTORY info from the .Os call.ru2001-07-102-2/+2
|
* Use 'LIBS+= ...' instead of 'LIBS= ...' in the generated makefilejoe2001-06-201-1/+1
| | | | | | | | so that the user can override libraries at build time. This is makes it easier to cross-compile crunch builds. Suggested by: luigi MFC after: 3 days
* mount_msdos(8) -> mount_msdosfs(8).ru2001-06-011-1/+1
|
OpenPOWER on IntegriCloud