summaryrefslogtreecommitdiffstats
path: root/usr.sbin/crunch
Commit message (Collapse)AuthorAgeFilesLines
* DIRDEPS_BUILD: Regenerate without local dependencies.bdrewery2016-02-241-2/+0
| | | | | | | | These are no longer needed after the recent 'beforebuild: depend' changes and hooking DIRDEPS_BUILD into a subset of FAST_DEPEND which supports skipping 'make depend'. Sponsored by: EMC / Isilon Storage Division
* crunchide: add RISC-V to supported machine typesemaste2015-12-111-0/+4
| | | | | MFC after: 1 week Sponsored by: The FreeBSD Foundation
* Fix rescue build after r284356 with STRIP= by using proper STRIPBIN per ↵bdrewery2015-07-281-2/+2
| | | | | | | | | | | | | | build(7). This was causing the following error: rescue sh: rescue: not found *** [rescue] Error code 127 make[1]: stopped in /usr/obj/usr/src/rescue/rescue Sponsored by: EMC / Isilon Storage Division
* new dependssjg2015-06-161-1/+0
|
* Change -Wl,-r back to -r so gcc doesn't pass --relax to the linker on sometijl2015-06-151-1/+1
| | | | | | architectures. PR: 200881
* Tell the compiler that -dc and -r are linker flags.tijl2015-06-141-1/+1
| | | | Reviewed by: adrian
* Fix typo - this upsets llvm/gcc-4.9, but not gcc-4.2 for some reason.adrian2015-06-141-1/+1
|
* Fix up crunchgen binary generation to work with external cross-buildadrian2015-06-131-2/+3
| | | | | | | | | | | | | tools. * Allow STRIP to be overridden by the environment * Use CC to tie things together, not LD Tested: * i386, mips32 Submitted by: kan
* Add META_MODE support.sjg2015-06-132-0/+39
|\ | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp
| * dirdeps.mk now sets DEP_RELDIRsjg2015-06-082-4/+0
| |
| * Merge sync of headsjg2015-05-275-259/+27
| |\ | |/ |/|
| * Merge from head@274682sjg2014-11-192-4/+0
| |\
| * \ Merge head from 7/28sjg2014-08-196-12/+12
| |\ \
| * | | Updated dependenciessjg2014-05-162-2/+0
| | | |
| * | | Updated dependenciessjg2014-05-102-0/+4
| | | |
| * | | Merge headsjg2014-04-281-1/+1
| |\ \ \
| * | | | Updated dependenciessjg2013-03-112-0/+2
| | | | |
| * | | | Updated dependenciessjg2013-02-162-4/+0
| | | | |
| * | | | Sync with HEAD.obrien2013-02-083-82/+186
| |\ \ \ \
| | \ \ \ \
| | \ \ \ \
| | \ \ \ \
| | \ \ \ \
| | \ \ \ \
| | \ \ \ \
| *-----. \ \ \ \ Sync from headsjg2012-11-045-56/+96
| |\ \ \ \ \ \ \ \
| * | | | | | | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.marcel2012-08-223-3/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net>
| * | | | | | | | | MFC: r237574: crunchen uses the same make binary as the rest of the buildobrien2012-06-251-5/+11
| | |_|_|/ / / / / | |/| | | | | | |
* | | | | | | | | crunchide: remove EOL whitespaceemaste2015-05-121-3/+3
| | | | | | | | |
* | | | | | | | | crunchide: Restore local EM_AARCH64 constant for bootstrappingemaste2015-04-301-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Most of the EM_* constants are available in all supported host branches, but EM_AARCH64 was added relatively recently. Add it back to fix building HEAD on 10.x. Noticed by: adrian, jmallett
* | | | | | | | | crunchide: add basic string table sanity checksemaste2015-04-281-6/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reported by: Coverity Scan CID: 978805, 980919 Sponsored by: The FreeBSD Foundation
* | | | | | | | | crunchide: Remove local EM_* ELF definitions provided by system ELF headersemaste2015-04-201-24/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Suggested by: imp (in review D2314)
* | | | | | | | | crunchide: always include both 32- and 64-bit ELF supportemaste2015-04-182-13/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This avoids the need to build a target-specific crunchide for cross- uilds. Differential Revision: https://reviews.freebsd.org/D2314 Sponsored by: The FreeBSD Foundation
* | | | | | | | | crunchide: remove unused a.out and non-functional ECOFF supportemaste2015-04-174-217/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Differential Revision: https://reviews.freebsd.org/D2311 Reviewed by: imp Sponsored by: The FreeBSD Foundation
* | | | | | | | | crunchide: arm64 supportemaste2015-03-271-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Submitted by: andrew@ Sponsored by: The FreeBSD Foundation
* | | | | | | | | crunchide: Correct 64-bit section header offsetemaste2015-01-161-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For 64-bit binaries the Elf_Ehdr e_shoff is at offset 40, not 44. Instead of using an incorrect hardcoded offset, let the compiler figure it out for us with offsetof(). Differential Revision: https://reviews.freebsd.org/D1543 MFC after: 1 week Sponsored by: The FreeBSD Foundation
* | | | | | | | | Add support to crunchide for handling AArch64 (arm64) ELF files.andrew2015-01-061-0/+4
| |_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation
* | | | | | | | Revert r267233 for now. PIE support needs to be reworked.bdrewery2014-08-192-4/+0
| |_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. 50+% of NO_PIE use is fixed by adding -fPIC to INTERNALLIB and other build-only utility libraries. 2. Another 40% is fixed by generating _pic.a variants of various libraries. 3. Some of the NO_PIE use is a bit absurd as it is disabling PIE (and ASLR) where it never would work anyhow, such as csu or loader. This suggests there may be better ways of adding support to the tree. Many of these cases can be fixed such that -fPIE will work but there is really no reason to have it in those cases. 4. Some of the uses are working around hacks done to some Makefiles that are really building libraries but have been using bsd.prog.mk because the code is cleaner. Had they been using bsd.lib.mk then NO_PIE would not have been needed. We likely do want to enable PIE by default (opt-out) for non-tree consumers (such as ports). For in-tree though we probably want to only enable PIE (opt-in) for common attack targets such as remote service daemons and setuid utilities. This is also a great performance compromise since ASLR is expected to reduce performance. As such it does not make sense to enable it in all utilities such as ls(1) that have little benefit to having it enabled. Reported by: kib
* | | | | | | Remove ia64.marcel2014-07-072-7/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This includes: o All directories named *ia64* o All files named *ia64* o All ia64-specific code guarded by __ia64__ o All ia64-specific makefile logic o Mention of ia64 in comments and documentation This excludes: o Everything under contrib/ o Everything under crypto/ o sys/xen/interface o sys/sys/elf_common.h Discussed at: BSDcan
* | | | | | | use .Mt to mark up email addresses consistently (part2)bapt2014-06-202-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PR: 191174 Submitted by: Franco Fichtner <franco@lastsummer.de>
* | | | | | | In preparation for ASLR [1] support add WITH_PIE to support building with -fPIE.bdrewery2014-06-082-0/+4
| |_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is currently an opt-in build flag. Once ASLR support is ready and stable it should changed to opt-out and be enabled by default along with ASLR. Each application Makefile uses opt-out to ensure that ASLR will be enabled by default in new directories when the system is compiled with PIE/ASLR. [2] Mark known build failures as NO_PIE for now. The only known runtime failure was rtld. [1] http://www.bsdcan.org/2014/schedule/events/452.en.html Submitted by: Shawn Webb <lattera@gmail.com> Discussed between: des@ and Shawn Webb [2]
* | | | | | NO_MAN= has been deprecated in favor of MAN= for some time, go aheadimp2014-04-131-1/+1
| |_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | and finish the job. ncurses is now the only Makefile in the tree that uses it since it wasn't a simple mechanical change, and will be addressed in a future commit.
* | | | | crunchgen: Permit use of alternative linkers.pfg2013-02-051-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | Submitted by: Pete Chou MFC after: 1 week
* | | | | crunchide(1): Put e_shnum into a local variable.pfg2013-02-031-10/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This simplifies the code a bit. Submitted by: Cristoph Mallon MFC after: 2 weeks
* | | | | crunchide(1): support non-custom elf object layoutpfg2013-02-031-60/+157
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The crunchide utility presumes the last 3 chunks of an ELF object layout are section headers, symbol table, and then string table. However, this is not specified in the ELF standards, and linkers may generate different layouts when doing partial linking (-r). This change is required to build FreeBSD with mclinker or the gold linker. PR: bin/174011 Submitted by: Pete Chou Reviewed by: Cristoph Mallon MFC after: 2 weeks
* | | | | crunch: Sync some NetBSD changespfg2013-02-031-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix a couple of free's in previous commit. Obtained from: NetBSD MFC after: 1 week
* | | | | crunch: Sync some NetBSD changespfg2013-02-021-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Revert a comment that was not supposed to go away. Obtained from: NetBSD
* | | | | crunch: Sync some NetBSD changes.pfg2013-02-023-26/+26
| |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | crunchide: Apr 11, 2009: fix some -Wsign-compare issues. Sep 20, 1999: Free the right thing. crunchgen: Apr 14, 2009: Fix some WARNS=4 issues (-Wshadow -Wcast-qual) Oct 30, 2004: Add (unsigned char) cast to ctype functions Feb 5, 2001: fix nested extern. examples: Aug 30, 2007: NetBSD 36867 - trsp references are deprecated Obtained from: NetBSD MFC after: 1 week
* | | | Disconnect non-MPSAFE PORTALFS from the build in preparation for droppingattilio2012-10-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | GIANT from VFS. This is not targeted for MFC.
* | | | Add support for bmake. This includes:marcel2012-10-061-3/+3
| |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Don't do upgrade_checks when using bmake. As long as we have WITH_BMAKE, there's a bootstrap complication in ths respect. Avoid it. Make the necessary changes to have upgrade_checks work wth bmake anyway. 2. Remove the use of -E. It's not needed in our build because we use ?= for the respective variables, which means that we'll take the environment value (if any) anyway. 3. Properly declare phony targets as phony as bmake is a lot smarter (and thus agressive) about build avoidance. 4. Make sure CLEANFILES is complete and use it on .NOPATH. bmake is a lot smarter about build avoidance and should not find files we generate in the source tree. We should not have files in the repository we want to generate, but this is an easier way to cross this hurdle. 5. Have behavior under bmake the same as it is under make with respect to halting when sub-commands fail. Add "set -e" to compound commands so that bmake is informed when sub-commands fail. 6. Make sure crunchgen uses the same make as the rest of the build. This is important when the make utility isn't called make (but bmake for example). 7. While here, add support for using MAKEOBJDIR to set the object tree location. It's the second alternative bmake looks for when determining the actual object directory (= .OBJDIR). Submitted by: Simon Gerraty <sjg@juniper.net> Submitted by: John Van Horne <jvanhorne@juniper.net>
* | | Some amount of style(9)obrien2012-06-273-53/+94
| | | | | | | | | | | | -- function definitions, header ordering, and $FreeBSD$.
* | | Ensure crunchen uses the same make binary as the rest of the build.obrien2012-06-251-5/+11
| |/ |/| | | | | Submitted by: Simon Gerraty <sjg@juniper.net>
* | Remove variables which are initialized but never used thereafter reported by ↵eadler2012-06-191-2/+1
|/ | | | | | | gcc46 warning Approved by: cperciva MFC After: 3 days
* Fix crunchide on MIPS with other than the O32 ABI.jmallett2012-03-131-1/+2
|
* mdoc: drop redundant .Pp and .LP callsuqs2010-10-081-2/+0
| | | | They have no effect when coming in pairs, or before .Bl/.Bd
* It turns out that TARGET_CPUARCH doesn't buy us much here, if anything, butimp2010-09-131-11/+2
| | | | | | | | | costs us another copy of the transform. Revert it. # Maybe makefile.inc1 should set TARGET_CPUARCH for the cross-tools, but # it doesn't now. That would solve problems in other places too. Submitted by: jmallet@
OpenPOWER on IntegriCloud