diff --git a/risc_v/Cargo.toml b/risc_v/Cargo.toml index 5c54ba0..c5ef792 100644 --- a/risc_v/Cargo.toml +++ b/risc_v/Cargo.toml @@ -6,5 +6,12 @@ edition = "2018" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[profile.dev] +opt-level = 0 +lto = false + +[profile.release] +opt-level = 3 +lto = true [dependencies] diff --git a/risc_v/src/lds/virt.lds b/risc_v/src/lds/virt.lds index ac728aa..4a1e7c5 100644 --- a/risc_v/src/lds/virt.lds +++ b/risc_v/src/lds/virt.lds @@ -201,7 +201,6 @@ SECTIONS */ *(.sdata .sdata.*) *(.data .data.*) PROVIDE(_data_end = .); - *(.eh_frame) } >ram AT>ram :data .bss : {