Openwrt/package/network/utils
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
..
arptables
comgt
conntrack-tools treewide: replace jow@openwrt.org with jo@mein.io 2016-06-07 11:42:52 +02:00
curl
dante treewide: replace jow@openwrt.org with jo@mein.io 2016-06-07 11:42:52 +02:00
ebtables ebtables: fix segmentation fault due to uninitialized extension data 2016-06-24 15:59:36 +02:00
iftop treewide: replace jow@openwrt.org with jo@mein.io 2016-06-07 11:42:52 +02:00
iperf
iperf3
iproute2
ipset treewide: replace jow@openwrt.org with jo@mein.io 2016-06-07 11:42:52 +02:00
iptables
iputils treewide: replace jow@openwrt.org with jo@mein.io 2016-06-07 11:42:52 +02:00
iw
iwcap treewide: replace jow@openwrt.org with jo@mein.io 2016-06-07 11:42:52 +02:00
iwinfo package/*: update git urls for project repos 2016-06-13 22:51:41 +02:00
linux-atm
maccalc
nftables
owipcalc treewide: replace jow@openwrt.org with jo@mein.io 2016-06-07 11:42:52 +02:00
resolveip treewide: replace jow@openwrt.org with jo@mein.io 2016-06-07 11:42:52 +02:00
rssileds
tcpdump
umbim package/*: update git urls for project repos 2016-06-13 22:51:41 +02:00
uqmi package/*: update git urls for project repos 2016-06-13 22:51:41 +02:00
wireless-tools
wpan-tools
wwan
xtables-addons xtables-addons: add missing dependency 2016-06-09 15:53:43 +02:00