opensbi icon indicating copy to clipboard operation
opensbi copied to clipboard

Provide flexibility to specify OpenSBI FW_TEXT_START during compilation

Open weilianglim1785 opened this issue 3 years ago • 2 comments

This changes is to provide flexibility for platform that does not use the default FW_TEXT_START. If FW_TEXT_START is not specified, default value will be used.

Signed-off-by: Wei Liang Lim [email protected]

weilianglim1785 avatar Jan 11 '22 10:01 weilianglim1785

The OpenSBI firmwares are by default position independent so you can run it from any other text base without recompiling.

avpatel avatar Jan 11 '22 12:01 avpatel

On current master branch, I can set FW_TEXT_START to tell OpenSBI where to link to. It is also an important feature in my opinion, because I avoid relocation whenever I can. It doesn't really take much perfomance, but debugging using GDB is very tedious if your program starts relocating itself to somewhere else. So I guess the issue does not exist anymore?

CodingVoid avatar Feb 26 '24 12:02 CodingVoid