get it working

This commit is contained in:
Corwin 2022-06-16 23:22:27 +01:00
parent 3a66aacc0c
commit 05adfabca8
5 changed files with 28 additions and 6 deletions

View file

@ -43,9 +43,7 @@ fn main() {
println!("cargo:warning={}", warning_line);
}
}
println!("cargo:rustc-link-arg={}", out_file_path);
}
println!("cargo:rustc-link-search={}", out_dir);
// println!("cargo:rustc-link-arg={}/crt0.o", out_dir);
}

View file

@ -12,6 +12,12 @@ MEMORY {
__text_start = ORIGIN(rom);
INPUT (
crt0.o
interrupt_handler.o
mixer.o
)
SECTIONS {
. = __text_start;

View file

@ -12,15 +12,19 @@ MEMORY {
__text_start = ORIGIN(rom);
INPUT (
crt0.o
interrupt_handler.o
mixer.o
)
SECTIONS {
. = __text_start;
.crt0 : {
KEEP (crt0.o(.text));
. = ALIGN(4);
} > rom
.text : {
KEEP(*(.crt0));
*(.crt0 .crt0*);
*(.text .text*);
. = ALIGN(4);
} > rom

View file

@ -12,9 +12,16 @@ MEMORY {
__text_start = ORIGIN(rom);
INPUT (
crt0.o
interrupt_handler.o
mixer.o
)
SECTIONS {
. = __text_start;
.text : {
KEEP(*(.crt0));
*(.crt0 .crt0*);

View file

@ -12,9 +12,16 @@ MEMORY {
__text_start = ORIGIN(rom);
INPUT (
crt0.o
interrupt_handler.o
mixer.o
)
SECTIONS {
. = __text_start;
.text : {
KEEP(*(.crt0));
*(.crt0 .crt0*);