openwrtv3/package/network
Jo-Philipp Wich cb7aa4b1fe ebtables: fix segmentation fault due to uninitialized extension data
The ebtables code relies on the `-nostartfiles` linker argument to execute the
extension modules' `_init()` functions automatically which is not working
reliably across all supported targets and gcc versions.

Running an ebtables executable linked this way just crashes with a segmentation
fault at runtime on program startup, e.g. on ARM architectures.

In order to fix the issue ...
 - remove the use of the -nostartfiles linker flag
 - rename the init procedures to a generic name without implicit semantics
 - explicitely annotate those init procedures as constructors

The patch has been taken from the Alpine Linux distribution at
http://git.alpinelinux.org/cgit/aports/tree/main/ebtables/fix-extension-init.patch

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2016-06-24 15:59:36 +02:00
..
config lantiq: Correct ADSL race condition 2016-06-22 19:32:06 +02:00
ipv6 treewide: replace jow@openwrt.org with jo@mein.io 2016-06-07 11:42:52 +02:00
services dnsmasq: dnssec time handling uses ntpd hotplug 2016-06-24 13:53:39 +02:00
utils ebtables: fix segmentation fault due to uninitialized extension data 2016-06-24 15:59:36 +02:00