sgmarz / osblog

The Adventures of OS
MIT License
517 stars 70 forks source link

Linker script error "Invalid memory region attribute" Chapter 0/1 #30

Closed multiojuice closed 3 years ago

multiojuice commented 3 years ago
error: linking with `rust-lld` failed: exit code: 1
 "Bunch of args that are ok"...
  = note: rust-lld: error: src/lds/virt.lds:7: invalid memory region attribute
          >>>   ram   (wxa!ri) : ORIGIN = 0x80000000, LENGTH = 128M
          >>>        

I am not sure how to remedy this or replace it. Why exactly would this be an issue? (Im on chapter 0/1).

I suspect it may be because I am on Mac.

sgmarz commented 3 years ago

Nope. That linker script is only for the non-rust-oob version. If you want the new one, please use the linker script in the GitHub repo: https://github.com/sgmarz/osblog/blob/master/risc_v/src/lds/virt.lds

multiojuice commented 3 years ago

Thanks for a quick reply! Your work is awesome!