diff options
author | Richard Henderson <rth@redhat.com> | 2016-06-21 15:10:10 -0700 |
---|---|---|
committer | Mark Wielaard <mjw@redhat.com> | 2016-06-28 20:09:11 +0200 |
commit | 9a36c9226c4a237208a7735f0e6a6fd1eefb60ab (patch) | |
tree | 22f86eafeea028d09ff8f13ab4b5c3258f3b848f /libebl | |
parent | 4c746f2501f6062230e2fa609bf4e8499b33caa4 (diff) | |
download | elfutils-9a36c9226c4a237208a7735f0e6a6fd1eefb60ab.tar.gz |
Add support for BPF
Signed-off-by: Richard Henderson <rth@redhat.com>
Diffstat (limited to 'libebl')
-rw-r--r-- | libebl/ChangeLog | 5 | ||||
-rw-r--r-- | libebl/ebl-hooks.h | 2 | ||||
-rw-r--r-- | libebl/eblopenbackend.c | 1 |
3 files changed, 7 insertions, 1 deletions
diff --git a/libebl/ChangeLog b/libebl/ChangeLog index 97a9b897..8ff40106 100644 --- a/libebl/ChangeLog +++ b/libebl/ChangeLog @@ -1,3 +1,8 @@ +2016-06-28 Richard Henderson <rth@redhat.com> + + * ebl-hooks.h (EBLHOOK(disasm)): Add ebl parameter. + * eblopenbackend.c (machines): Add EM_BPF entry. + 2016-05-20 Andreas Schwab <schwab@linux-m68k.org> * eblopenbackend.c (machines) [EM_68K]: Set class and data. diff --git a/libebl/ebl-hooks.h b/libebl/ebl-hooks.h index 2e314464..a7f47554 100644 --- a/libebl/ebl-hooks.h +++ b/libebl/ebl-hooks.h @@ -150,7 +150,7 @@ int EBLHOOK(syscall_abi) (Ebl *ebl, int *sp, int *pc, int *callno, int args[6]); /* Disassembler function. */ -int EBLHOOK(disasm) (const uint8_t **startp, const uint8_t *end, +int EBLHOOK(disasm) (Ebl *ebl, const uint8_t **startp, const uint8_t *end, GElf_Addr addr, const char *fmt, DisasmOutputCB_t outcb, DisasmGetSymCB_t symcb, void *outcbarg, void *symcbarg); diff --git a/libebl/eblopenbackend.c b/libebl/eblopenbackend.c index 2b922543..16ec1c45 100644 --- a/libebl/eblopenbackend.c +++ b/libebl/eblopenbackend.c @@ -132,6 +132,7 @@ static const struct { "arc", "elf_arc_a5", "arc_a5", 6, EM_ARC_A5, 0, 0 }, { "xtensa", "elf_xtensa", "xtensa", 6, EM_XTENSA, 0, 0 }, { "aarch64", "elf_aarch64", "aarch64", 7, EM_AARCH64, ELFCLASS64, 0 }, + { "bpf", "elf_bpf", "bpf", 3, EM_BPF, 0, 0 }, }; #define nmachines (sizeof (machines) / sizeof (machines[0])) |