You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to compile a reasonably large bare-metal program that does not fit in the 64K spm by about 15K, so I am linking it for dram with the provided makefile.
It throws the following error: strlen.c:(.text.strlen+0x8): relocation truncated to fit: R_RISCV_HI20 against `.LC0'`
Which I on a google search I found to be related with using -mcmodel=medlow instead of -mcmodel=medany. But cheshire's makefile already uses -mcmodel=medany.
Any ideas on why may I be getting this error?
Thanks.
P.D. Just noticed spm is set to 128 KB. But the problem remains.
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
I am trying to compile a reasonably large bare-metal program that does not fit in the 64K spm by about 15K, so I am linking it for dram with the provided makefile.
It throws the following error:
strlen.c:(.text.strlen+0x8): relocation truncated to fit: R_RISCV_HI20 against `.LC0'`
Which I on a google search I found to be related with using -mcmodel=medlow instead of -mcmodel=medany. But cheshire's makefile already uses -mcmodel=medany.
Any ideas on why may I be getting this error?
Thanks.
P.D. Just noticed spm is set to 128 KB. But the problem remains.
The text was updated successfully, but these errors were encountered: