mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 04:43:53 +00:00
stand: Export _start on arm like other architectures
By not exporting _start, we get various warnings of the form: ld: warning: cannot find entry symbol _start Note that in practice these don't matter because we manually construct our PE header and use objcopy -O binary, so the entry point is set to whatever we put explicitly in the PE header, but we should still do the right thing and silence these warnings. This was found in CheriBSD, where bsd.prog.mk has similar logic to bsd.lib.mk and sets -Wl,--(no-)fatal-warnings based on LD_FATAL_WARNINGS (unlike FreeBSD which only does so in the latter).
This commit is contained in:
parent
aca3d65fed
commit
106c9ff5ac
|
@ -140,6 +140,7 @@ section_table:
|
||||||
_end_header:
|
_end_header:
|
||||||
|
|
||||||
.text
|
.text
|
||||||
|
.globl _start
|
||||||
_start:
|
_start:
|
||||||
/* Save the boot params to the stack */
|
/* Save the boot params to the stack */
|
||||||
push {r0, r1}
|
push {r0, r1}
|
||||||
|
|
Loading…
Reference in a new issue