Relocations are working
This commit is contained in:
@@ -1,10 +1,5 @@
|
||||
#![no_std]
|
||||
#![no_main]
|
||||
#![feature(fmt_internals)]
|
||||
|
||||
use core::fmt::{write, Arguments, Write};
|
||||
|
||||
use os_std::syscall;
|
||||
os_std::custom_std_setup! {}
|
||||
|
||||
fn main() {
|
||||
@@ -14,14 +9,5 @@ fn main() {
|
||||
for _ in 0..50 {
|
||||
test.push('C');
|
||||
}
|
||||
let mut b = String::from("test");
|
||||
b.write_str("string: uaeuieuei");
|
||||
// (&mut b as &mut dyn Write).write_str("string: uaeuieuei");
|
||||
syscall::write_string_temp(&b);
|
||||
// write(&mut b, Arguments::from_str_nonconst("string: uaeuieuei"));
|
||||
// write(&mut b, format_args!("string: uaeuie{}", "uei"));
|
||||
// syscall::write_int_temp(b.capacity() as u64);
|
||||
// syscall::write_string_temp(&b);
|
||||
// println!("{}", test);
|
||||
// println!("Hello from PIC program loaded dynamically with custom std and a better justfile, and syscalls !");
|
||||
println!("Hello from PIC program loaded dynamically with custom std and a better justfile, and syscalls !");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user