diff options
author | Jose E. Marchesi <jose.marchesi@oracle.com> | 2019-05-23 19:06:17 +0200 |
---|---|---|
committer | Jose E. Marchesi <jose.marchesi@oracle.com> | 2019-05-23 19:34:21 +0200 |
commit | aca4efc7a4fc42bac5b7b029c52cbb2a2bc2574b (patch) | |
tree | 7d2aef37131904e9346e79c8454aea0f082f2aec /binutils/testsuite | |
parent | 8376927b2cc8b80cd5aa1e48aabafc85c0ad4f3e (diff) | |
download | gdb-aca4efc7a4fc42bac5b7b029c52cbb2a2bc2574b.zip gdb-aca4efc7a4fc42bac5b7b029c52cbb2a2bc2574b.tar.gz gdb-aca4efc7a4fc42bac5b7b029c52cbb2a2bc2574b.tar.bz2 |
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.
Diffstat (limited to 'binutils/testsuite')
-rw-r--r-- | binutils/testsuite/binutils-all/nm.exp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/binutils/testsuite/binutils-all/nm.exp b/binutils/testsuite/binutils-all/nm.exp index 64a969e..5dbdcbf 100644 --- a/binutils/testsuite/binutils-all/nm.exp +++ b/binutils/testsuite/binutils-all/nm.exp @@ -160,7 +160,8 @@ if { [is_elf_format] || [istarget *-*-uclinux*] || [istarget ia64-*-*vms*] || [istarget *-*-vxworks*] - || [istarget wasm32-*-*] } { + || [istarget wasm32-*-*] + || [istarget bpf-*-*]} { set nm_1_src "nm-elf-1.s" } else { set nm_1_src "nm-1.s" |