summaryrefslogtreecommitdiffstats
path: root/libebl/eblrelocsimpletype.c
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2018-10-02 14:46:51 +0200
committerMark Wielaard <mark@klomp.org>2018-10-13 22:54:51 +0200
commit2876b3b648f665736ac9c879d34de5e3866ba8f9 (patch)
treebe631dee293e01847e3eea43343b0d249a7532c6 /libebl/eblrelocsimpletype.c
parent69d6e67eee30c483ba53a8e1da1b3568033e3dde (diff)
Handle ADD/SUB relocations
This adds support for ADD and SUB relocations as seen on RISC-V. Signed-off-by: Andreas Schwab <schwab@suse.de>
Diffstat (limited to 'libebl/eblrelocsimpletype.c')
-rw-r--r--libebl/eblrelocsimpletype.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libebl/eblrelocsimpletype.c b/libebl/eblrelocsimpletype.c
index 9bd29285..12292804 100644
--- a/libebl/eblrelocsimpletype.c
+++ b/libebl/eblrelocsimpletype.c
@@ -34,7 +34,7 @@
Elf_Type
-ebl_reloc_simple_type (Ebl *ebl, int reloc)
+ebl_reloc_simple_type (Ebl *ebl, int reloc, int *addsub)
{
- return ebl != NULL ? ebl->reloc_simple_type (ebl, reloc) : ELF_T_NUM;
+ return ebl != NULL ? ebl->reloc_simple_type (ebl, reloc, addsub) : ELF_T_NUM;
}