freebsd-skq/stand/i386/loader
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
..
chain.c veloader use vectx API for kernel and modules 2020-03-09 16:02:54 +00:00
conf.c Remove NAND and NANDFS support 2019-06-25 04:50:09 +00:00
help.i386
loader.rc Revert r332275, r332272, r332270 2018-04-11 18:02:13 +00:00
main.c loader: implement framebuffer console 2021-01-02 21:41:36 +02:00
Makefile boot: fix OBJS to not include BTX's crt0.o 2021-05-06 13:08:30 -06:00
Makefile.depend Enable veriexec for loader 2019-02-26 06:22:10 +00:00
version