[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAJ3xEMgyiurkgaUwU7utcG+qdRD6k5SfS8Vsebf=fH_8-pYW0g@mail.gmail.com>
Date: Fri, 6 Mar 2015 09:20:23 +0200
From: Or Gerlitz <gerlitz.or@...il.com>
To: Daniel Borkmann <daniel@...earbox.net>
Cc: Linux Netdev List <netdev@...r.kernel.org>
Subject: Re: [PATCH net-next] ebpf: bpf_map_*: fix linker error on avr32 and
openrisc arch
On Fri, Mar 6, 2015 at 12:27 AM, Daniel Borkmann <daniel@...earbox.net> wrote:
> Fengguang reported, that on openrisc and avr32 architectures, we
> get the following linker errors on *_defconfig builds that have
> no bpf syscall support:
> net/built-in.o:(.rodata+0x1cd0): undefined reference to `bpf_map_lookup_elem_proto'
> net/built-in.o:(.rodata+0x1cd4): undefined reference to `bpf_map_update_elem_proto'
> net/built-in.o:(.rodata+0x1cd8): undefined reference to `bpf_map_delete_elem_proto'
>
> Fix it up by providing built-in weak definitions of the symbols,
> so they can be overridden when the syscall is enabled. I think
> the issue might be that gcc is not able to optimize all that away.
> This patch fixes the linker errors for me, tested with Fengguang's
> make.cross [1] script.
>
> [1] https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
>
> Reported-by: Fengguang Wu <fengguang.wu@...el.com>
> Fixes: d4052c4aea0c ("ebpf: remove CONFIG_BPF_SYSCALL ifdefs in socket filter code")
isn't that a 4.0-rc commit? if this is the case, this is for net, not net-next
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists