Questions for OpenSBI to support position independent execution

Andreas Schwab schwab at linux-m68k.org
Fri Jan 22 04:52:25 EST 2021


On Jan 22 2021, Anup Patel wrote:

> The proposal for position-independent OpenSBI firmwares has been
> suggested in the past. Our only concern with position-independent
> code is additional instructions added in hot-path which can affect
> performances because all global variables and global functions will
> now be referred via GOT.

If you compile it as PIE that should all end up as pc-relative.

Andreas.

-- 
Andreas Schwab, schwab at linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."



More information about the opensbi mailing list