Commit Graph

6 Commits

Author SHA1 Message Date
Ed Maste
45eff3df96 remove CONSTRUCTORS from kernel linker scripts
The linker script CONSTRUCTORS keyword is only meaningful "when linking
object file formats which do not support arbitrary sections, such as
ECOFF and XCOFF"[1] and is ignored for other object file formats.

LLVM's lld does not yet accept (and ignore) CONSTRUCTORS, so just remove
CONSTRUCTORS from the linker scripts as it has no effect.

[1] https://sourceware.org/binutils/docs/ld/Output-Section-Keywords.html

Reviewed by:	kib
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D7343
2016-07-28 13:54:46 +00:00
Warner Losh
e35d9de240 Remove commented out _DYNAMIC sections. 2011-01-20 19:20:23 +00:00
Juli Mallett
d917717eeb The output format should be determined by the ABI flags, not the ldscript.
This ldscript is used with both little-endian and big-endian targets.

This hopefully fixes MIPS universe.

NB: We really should get rid of almost all of the MIPS ldscripts.  There's
    only gratuitous differences between them, mostly because they're too
    specific or they do things like specify the output format rather than
    taking it from flags given in the kernel config file or the default
    output format of the compiler.

Also add svn:keywords property.
2011-01-19 22:15:12 +00:00
Warner Losh
fea06c66bf Put back KERNLOADADDR. 2009-09-09 00:46:11 +00:00
Warner Losh
b0f42e724a Pick an arbitrary address to load the kernel at. 1MB seems as good as
any other.
2009-08-15 19:43:15 +00:00
Warner Losh
1d184a6dd9 New script to produce mips64 ELF64 binaries. 2009-08-15 04:27:57 +00:00