opensbi/firmware/payloads
Vincent Chen 22d8ee9758 firmware: Use lla to access all global symbols
When OpenSBI is compiled as fPIE mode, the assembler will translate "la"
to GOT reference pattern. It will cause to cost an additional load
instruction when obtaining the symbol address. However, if the symbol
locates within the positive or negative 2GB region, we can use "lla"
instead of "la" to avoid unneeded GOT references. This patch assumes that
the OpenSBI image excluding the payload does not exceed 2GB. Based on
this assumption, all "la" instructions are replaced by "lla" to avoid
performance degradation when compiling as fPIE mode.

Signed-off-by: Vincent Chen <vincent.chen@sifive.com>
Reviewed-by: Anup Patel <anup.patel@wdc.com>
2021-03-19 14:57:45 +05:30
..
objects.mk all: Update copyright header in all files 2019-01-24 14:07:47 +05:30
test.elf.ldS all: Update copyright header in all files 2019-01-24 14:07:47 +05:30
test_head.S firmware: Use lla to access all global symbols 2021-03-19 14:57:45 +05:30
test_main.c lib: Rename existing SBI implementation as 0.1. 2019-10-03 08:53:52 +05:30