binutils: add support for eBPF
authorJose E. Marchesi <jose.marchesi@oracle.com>
Thu, 23 May 2019 17:06:17 +0000 (19:06 +0200)
committerJose E. Marchesi <jose.marchesi@oracle.com>
Thu, 23 May 2019 17:34:21 +0000 (19:34 +0200)
commitaca4efc7a4fc42bac5b7b029c52cbb2a2bc2574b
tree7d2aef37131904e9346e79c8454aea0f082f2aec
parent8376927b2cc8b80cd5aa1e48aabafc85c0ad4f3e
binutils: add support for eBPF

This patch adds support for ELF64 eBPF to readelf, and fixes a `nm'
test to run properly in bpf-*-* targets.

binutils/ChangeLog:

2019-05-23  Jose E. Marchesi  <jose.marchesi@oracle.com>

* readelf.c: Include elf/bpf.h.
(guess_is_rela): Hanle EM_BPF.
(dump_relocations): Likewise.
(is_32bit_abs_reloc): Likewise.
* testsuite/binutils-all/nm.exp: Add bpf-*-* to the list of
ELF targets.
binutils/ChangeLog
binutils/readelf.c
binutils/testsuite/binutils-all/nm.exp