* Hi All, I am facing some problem while compiling code for target --> riscv64imac-unknown-none-elf. Getting following linker error ``` note: some arguments are omitted. use `--verbose` to show all linker arguments = note: rust-lld: error: :(.eh_frame+0x1c): relocation R_RISCV_32_PCREL out of range: 2147488418 is not in [-2147483648, 2147483647]; references '.L0 ' >>> defined in /Users/anand/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/riscv64imac-unknown-none-elf/lib/libcore-30a786714711bc78.rlib(core-30a786714711bc78.core.101420641b4fc1ad-cgu.0.rcgu.o) rust-lld: error: :(.eh_frame+0x40): relocation R_RISCV_32_PCREL out of range: 2147488800 is not in [-2147483648, 2147483647]; references '.L0 ' >>> defined in /Users/anand/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/riscv64imac-unknown-none-elf/lib/libcore-30a786714711bc78.rlib(core-30a786714711bc78.core.101420641b4fc1ad-cgu.0.rcgu.o) rust-lld: error: :(.eh_frame+0x64): relocation R_RISCV_32_PCREL out of range: 2147489572 is not in [-2147483648, 2147483647]; references '.L0 ' >>> defined in /Users/anand/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/riscv64imac-unknown-none-elf/lib/libcore-30a786714711bc78.rlib(core-30a786714711bc78.core.101420641b4fc1ad-cgu.0.rcgu.o) ``` following are the linker arguments i am passing in config.toml ``` "-C", "link-arg=-Tmemory.x", "-C", "link-arg=-Tlink.x", ``` Following is the memory.x file ``` MEMORY { FLASH (rx) : ORIGIN = 0x90001000, LENGTH = 128M RAM (rwx) : ORIGIN = 0x80000000, LENGTH = 128K PSRAM(rwx) : ORIGIN = 0xB0000000, LENGTH = 512M } REGION_ALIAS("REGION_TEXT", RAM); REGION_ALIAS("REGION_RODATA", RAM); REGION_ALIAS("REGION_DATA", RAM); REGION_ALIAS("REGION_BSS", RAM); REGION_ALIAS("REGION_HEAP", RAM); REGION_ALIAS("REGION_STACK", RAM); ``` I am not sure how to proceed with the debugging of such errors. here is the link to whole git repo https://github.com/Strange21/RISCV just do ``` cd riscv-hal cargo build --example gptimer ```