ld: add support for eBPF
authorJose E. Marchesi <jose.marchesi@oracle.com>
Thu, 23 May 2019 17:05:42 +0000 (19:05 +0200)
committerJose E. Marchesi <jose.marchesi@oracle.com>
Thu, 23 May 2019 17:34:15 +0000 (19:34 +0200)
commit8376927b2cc8b80cd5aa1e48aabafc85c0ad4f3e
treeea438d902286e53cdacd4ff6a5bd29ebf9bd5fea
parentf8861f5dc2391e0c46dd118370195e7730ec46ca
ld: add support for eBPF

This patch adds support to the linker for the Linux eBPF architecture.
A minimal testsuite is included.

ld/ChangeLog:

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

* Makefile.am (ALL_64_EMULATION_SOURCES): Add eelf64bpf.c.
* Makefile.in (prefix): Regenerate.
* configure.tgt (targ_extra_ofiles): Add case for bpf-*-* targets.
* emulparams/elf64bpf.sh: New file.
* testsuite/lib/ld-lib.exp (check_gc_sections_available): Add
bpf-*-* to the list of targets not supporting gc-sections.
* testsuite/ld-bpf/bar.s: New file.
* testsuite/ld-bpf/jump-1.d: Likewise.
* testsuite/ld-bpf/foo.s: Likewise.
* testsuite/ld-bpf/call-1.d: Likewise.
* testsuite/ld-bpf/bpf.exp: Likewise.
* testsuite/ld-bpf/baz.s: Likewise.
13 files changed:
ld/ChangeLog
ld/Makefile.am
ld/Makefile.in
ld/configure
ld/configure.tgt
ld/emulparams/elf64bpf.sh [new file with mode: 0644]
ld/testsuite/ld-bpf/bar.s [new file with mode: 0644]
ld/testsuite/ld-bpf/baz.s [new file with mode: 0644]
ld/testsuite/ld-bpf/bpf.exp [new file with mode: 0644]
ld/testsuite/ld-bpf/call-1.d [new file with mode: 0644]
ld/testsuite/ld-bpf/foo.s [new file with mode: 0644]
ld/testsuite/ld-bpf/jump-1.d [new file with mode: 0644]
ld/testsuite/lib/ld-lib.exp