-
Notifications
You must be signed in to change notification settings - Fork 665
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wrong address space #3390
Comments
You have to provide an linker script file to linker/compiler, which will tell the linker where to put those sections. You could refer to OpenXiangShan/nexus-am for details of building baremental applications. There is an linker script example:
|
thanks for your help also, what does this sentence means: |
|
You may also specify |
Before start
Describe you problem
Hi
I used below instruction to convert .S file to . O
"• riscv64-linux-gnu-gcc -static -mcmodel=medany -fvisibility=hidden -nostdlib -nostartfiles -Iriscv-tests/env/p/ -Iriscv-tests/isa/macros/scalar - capstone-ariane/verif/tests/custom/capstone/capcreate.S -o capcreate.o -Wl,--build-id=none"
but after producing .txt file I see wrong address!.
the code must start from 80000000 but start from 100c0!
I want to make emu the file on modified XianfShan.
What did you do before
I want to make emu the file on modified XianfShan.
Environment
Additional context
No response
The text was updated successfully, but these errors were encountered: