On Sun, Sep 6, 2015 at 4:17 PM, Masao Uebayashi <uebay...@netbsd.org> wrote: > Module Name: src > Committed By: uebayasi > Date: Sun Sep 6 07:17:14 UTC 2015 > > Modified Files: > src/sys/arch/amd64/conf: Makefile.amd64 files.amd64 > > Log Message: > Define MD start code at the top of files.${MACHINE} relying on config(1)'s > deterministic file output order. No need to define ${MD_OBJS} and its > useless, > explicit compile rules.
Although it was true that config(1) preserves file order, I have mistakenly reordered files in ${OBJS}, that is passed to ${LD}, and the first file (locore.o) has been mistakenly linked after all *.o files derived from *.c. Just fixed now in sys/conf/Makefile.kern.inc Rev. 1.244. (Kernel booted because boot loader honored ELF entry address.)