freebsd-skq/stand/i386
Warner Losh e713d3a013 boot: fix OBJS to not include BTX's crt0.o
According to comments in the Makefile, to make pxeboot work we need to
have crt0.o first. This is needed because the simplified loader in
pxeboot assumes that the startup code is at offset 0 in this binary. In
normal booting, the start address can be obtained from headers of the
binary, but since pxeboot encodes this as a pure binary, it has no way
of knowing where that is and assumes 0. Added comments to that effect
in the Makefile.

We've done this by adding it to OBJS before all the other .o's are
added. However, there's a problem. This also adds it to the CLEANFILES
variable, which causes it to be removed from multiple places. The
dependencies may also cause it to be re-built at a time that's after
boot2 is built. This causes installs to fail because at install time
boot2 is considered to be out of date and the programs to rebuild it are
no longer in the path.

Cope with this problem by just adding it to LDFLAGS instead.

Glanced at by:		kevans ("I thought that went in ages ago")
Sponsored by:		Netflix
Differential Revision:	https://reviews.freebsd.org/D28876
2021-05-06 13:08:30 -06:00
..
boot0 Revert r362466 2020-06-22 07:46:24 +00:00
boot0sio
boot2 Don't add -Winline for WARNS=6 2021-03-22 11:55:45 +00:00
btx
cdboot
common loader: edd_device_path_v3 is too small 2020-10-12 09:34:50 +00:00
gptboot gptboot.efi: Add man page 2021-04-05 23:57:57 -06:00
gptzfsboot loader: zfs should support bootonce an nextboot 2020-09-21 09:01:10 +00:00
isoboot Don't add -Winline for WARNS=6 2021-03-22 11:55:45 +00:00
libfirewire EFI secure boot VECTX related changes 2021-04-30 12:53:45 -05:00
libi386 EFI secure boot VECTX related changes 2021-04-30 12:53:45 -05:00
loader boot: fix OBJS to not include BTX's crt0.o 2021-05-06 13:08:30 -06:00
loader_4th
loader_lua
loader_simp
mbr
pmbr
pxeldr pxeboot(8): remove antiquated information 2021-02-15 22:03:37 +00:00
zfsboot zfsboot: add prototype for main() 2020-11-15 14:04:27 +00:00
boot.ldscript Link stand/i386 components using a linker script 2020-03-04 21:01:22 +00:00
Makefile stand: properly declare subdir deps or .WAIT, do parallel build 2020-12-31 11:15:45 -06:00
Makefile.inc Link stand/i386 components using a linker script 2020-03-04 21:01:22 +00:00