Compare commits
2 Commits
14affd5c79
...
1604f22afd
| Author | SHA1 | Date |
|---|---|---|
|
|
1604f22afd | |
|
|
f6a6cb63b1 |
|
|
@ -200,8 +200,8 @@ pub fn build(b: *Builder) !void {
|
||||||
|
|
||||||
// Standard release options allow the person running `zig build` to select
|
// Standard release options allow the person running `zig build` to select
|
||||||
// between Debug, ReleaseSafe, ReleaseFast, and ReleaseSmall.
|
// between Debug, ReleaseSafe, ReleaseFast, and ReleaseSmall.
|
||||||
// const mode = b.standardReleaseOptions();
|
const mode = b.standardReleaseOptions();
|
||||||
const mode = .ReleaseFast;
|
// const mode = .ReleaseSmall;
|
||||||
|
|
||||||
const files = try findFiles(ktarget);
|
const files = try findFiles(ktarget);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,30 +4,30 @@ SECTIONS
|
||||||
{
|
{
|
||||||
. = 1M + 16K;
|
. = 1M + 16K;
|
||||||
|
|
||||||
.stivale2hdr ALIGN(4K) :
|
.stivale2hdr ALIGN(1) :
|
||||||
{
|
{
|
||||||
KEEP(*(.stivale2hdr))
|
KEEP(*(.stivale2hdr))
|
||||||
}
|
}
|
||||||
|
|
||||||
.text ALIGN(4K) :
|
.text ALIGN(4K) :
|
||||||
{
|
{
|
||||||
KEEP(*(.text*))
|
/* KEEP(*(.text*)) */
|
||||||
}
|
}
|
||||||
|
|
||||||
.rodata ALIGN(4K) :
|
.rodata ALIGN(4K) :
|
||||||
{
|
{
|
||||||
KEEP(*(.rodata*))
|
/* KEEP(*(.rodata*)) */
|
||||||
}
|
}
|
||||||
|
|
||||||
.data ALIGN(4K) :
|
.data ALIGN(4K) :
|
||||||
{
|
{
|
||||||
KEEP(*(.data*))
|
/* KEEP(*(.data*)) */
|
||||||
}
|
}
|
||||||
|
|
||||||
.bss ALIGN(4K) :
|
.bss ALIGN(4K) :
|
||||||
{
|
{
|
||||||
KEEP(*(COMMON))
|
/* KEEP(*(COMMON)) */
|
||||||
KEEP(*(.bss*))
|
/* KEEP(*(.bss*)) */
|
||||||
}
|
}
|
||||||
|
|
||||||
_stack = 1M;
|
_stack = 1M;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue