[Libre-soc-bugs] [Bug 1073] Microwatt verilator sim - setting up chroot and documentation

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Fri Apr 28 00:39:27 BST 2023


https://bugs.libre-soc.org/show_bug.cgi?id=1073

--- Comment #6 from Luke Kenneth Casson Leighton <lkcl at lkcl.net> ---
(In reply to Jacob Lifshay from comment #5)

> generally embedded code needs to know which address it's at, so all the
> non-pc-relative things work correctly

such as "load the immediate address of a bootloader magic constant".

you'll find that in the Makefile there is a #define of the offset
address, that *absolutely must* be encoded correctly to the
address that you expect the binary to be uploaded to.  this #define
goes into the linker script via some makefile target voodoo involving
gcc -E (i think - something like that) which can do macro-substitution.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the libre-soc-bugs mailing list