summaryrefslogtreecommitdiffstats
path: root/usr.sbin/btxld
Commit message (Collapse)AuthorAgeFilesLines
* Add META_MODE support.sjg2015-06-131-0/+18
|\ | | | | | | | | | | | | | | | | | | | | 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-081-2/+0
| |
| * Merge from head@274682sjg2014-11-191-2/+0
| |\ | |/ |/|
| * Merge head from 7/28sjg2014-08-192-1/+3
| |\
| * | Updated dependenciessjg2014-05-161-1/+0
| | |
| * | Updated dependenciessjg2014-05-101-0/+2
| | |
| * | Merge headsjg2014-04-281-1/+1
| |\ \
| * | | Updated dependenciessjg2013-03-111-0/+1
| | | |
| * | | Updated dependenciessjg2013-02-161-2/+0
| | | |
| * | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.marcel2012-08-221-0/+19
| | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net>
* | | | Revert r267233 for now. PIE support needs to be reworked.bdrewery2014-08-191-2/+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
* | | use .Mt to mark up email addresses consistently (part2)bapt2014-06-201-1/+1
| | | | | | | | | | | | | | | 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-081-0/+2
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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]
* | In puthdr(), start the ELF .data section on a new page, as this isbrueffer2014-02-251-1/+1
|/ | | | | | | | | | | | what btxldr expects (.set MEM_DATA,start+0x1000 in btxldr.S). This makes resulting ELF binaries bootable with grub, gptboot and boot2. PR: 153801 Submitted by: Gleb Kurtsou <gleb.kurtsou at gmail.com> Tested by: Ruben Kerkhof <ruben at rubenkerkhof.com> Glanced at by: jhb, peter MFC after: 1 month
* The last big commit: let usr.sbin/ use WARNS=6 by default.ed2010-01-021-2/+0
|
* The boot loader is a FreeBSD a.out binary for x86, not a VAX binary.imp2009-09-101-1/+1
| | | | | | | | | | | | | Rather than writing out a MID of '0', write a MID of 0x86 (aka MID_I386) so that file gets it right. This is a nop for boot2. It just checks the MAGIC part of the field, ignoring the MID. boot2 is the only thing that loads this file, and only on x86 so the MID_i386 is always the right value (the rest of the code is already x86 specific). Reviewed by: bde@, jhb@ MFC after: 8.0 is out the door :)
* Allow for a zero length 'loader'.dfr2008-04-051-0/+2
|
* An old patch from Dan Lukes <dan at obluda.cz>:delphij2006-01-232-2/+6
| | | | | | | | | + Include netinet/in.h for ntohl() * Since the return value was tested separately, cast the values to size_t in order to shut up compiler warnings. + Raise WARNS= level to 6 PR: bin/71666
* Fix the same problem that was fixed in rev. 1.6 and got reintroducedru2005-02-191-0/+5
| | | | | | in rev. 1.8 -- make btxld(8) a cross-tool for i386 and now amd64. Tested on: alpha (which has a different idea of __LDPGSZ)
* Sort sections.ru2005-01-181-2/+2
|
* Added the EXIT STATUS section where appropriate.ru2005-01-171-1/+1
|
* Mechanically kill hard sentence breaks.ru2004-07-021-1/+2
|
* Adjust the system endian and a.out headers to be more MI and cross-buildingobrien2004-06-223-95/+94
| | | | | | friendly. Use the systems headers rather than local versions. Reviewed by: ru
* Make this work on different endianness machines.ru2003-03-114-173/+100
| | | | | | | | Tested on: sparc64 : FreeBSD/i386 bootstrap loader, Revision 1.1 : (ru@panther.freebsd.org, Tue Mar 11 05:31:14 PST 2003) : Loading /boot/defaults/loader.conf
* Added MI version of <sys/imgact_aout.h>, "a.out.h", which isru2003-02-042-2/+87
| | | | | | | always compatible with the i386 version. This fixes one of the problems I had cross-releasing i386 on Alpha: the produced "-f aout" binaries are now identical.
* Get howmany() macro from <sys/param.h>, instead of depending on itsmike2002-09-241-1/+1
| | | | existence in <sys/types.h>.
* mdoc(7) police: utilize the new .Ex macro.ru2001-08-151-1/+1
|
* Unset MAINTAINER.rnordier2001-07-211-2/+0
|
* Perform a major cleanup of the usr.sbin Makefiles.obrien2001-07-201-1/+1
| | | | | 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-2/+0
|
* - Backout botched attempt to introduce MANSECT feature.ru2001-03-261-0/+1
| | | | - MAN[1-9] -> MAN.
* Set the default manual section for usr.sbin/ to 8.ru2001-03-201-1/+0
|
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-201-1/+1
|
* Set MAINTAINER.rnordier2000-10-021-0/+2
|
* o Allow btxld to be compiled on 64-bit machinesmarcel2000-01-044-18/+24
| | | | | | | | o s/unsigned/unsigned int/g o Add -Wall btxld can now be built as a cross-tool for cross-building i386/pc98 on platforms that don't have btxld (such as alpha).
* $Id$ -> $FreeBSD$peter1999-08-286-6/+6
|
* Enable client entry point support.rnordier1998-09-131-1/+5
|
* btxld is a link editor for BTX (boot extender) clients, supporting ELF,rnordier1998-09-126-0/+882
a.out, and binary formats.
OpenPOWER on IntegriCloud