bfd: use the ELF linker to perform relocations in BPF targets
authorJose E. Marchesi <jose.marchesi@oracle.com>
Wed, 7 Aug 2019 09:33:13 +0000 (11:33 +0200)
committerJose E. Marchesi <jose.marchesi@oracle.com>
Wed, 7 Aug 2019 11:57:30 +0000 (13:57 +0200)
commitfc8de8e227e5146336d654f2fb4f98010d7cf12d
tree898b2d933b509006b8fee2ff5580751ff1574428
parent97b031c5d6d42ff2b1758a8a8c332cb44ba9c06f
bfd: use the ELF linker to perform relocations in BPF targets

This patch changes the eBPF linker to provide a relocate_section
function instead of relying on using special functions in relocation
howtos.

Tested in x86_64 host.
No regressions.

bfd/ChangeLog:

2019-08-07  Jose E. Marchesi  <jose.marchesi@oracle.com>

* elf64-bpf.c (bpf_elf_relocate_section): New function.
(bpf_elf_insn_disp_reloc): Delete function.
(elf_backend_relocate_section): Define.
bfd/ChangeLog
bfd/elf64-bpf.c