diff options
author | Jo-Philipp Wich <jo@mein.io> | 2016-06-24 15:04:27 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2016-06-24 15:59:36 +0200 |
commit | cb7aa4b1fee688342950d02195b927962295514e (patch) | |
tree | dd0fc0e95f837109c01a822da5bb90875a6e7c5b /package/network/utils/ebtables/Makefile | |
parent | d4ede1c1189abff6f52887179878cb950a4e47a0 (diff) | |
download | upstream-cb7aa4b1fee688342950d02195b927962295514e.tar.gz upstream-cb7aa4b1fee688342950d02195b927962295514e.tar.bz2 upstream-cb7aa4b1fee688342950d02195b927962295514e.zip |
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>
Diffstat (limited to 'package/network/utils/ebtables/Makefile')
-rw-r--r-- | package/network/utils/ebtables/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/network/utils/ebtables/Makefile b/package/network/utils/ebtables/Makefile index 30bf426d77..78b83b817b 100644 --- a/package/network/utils/ebtables/Makefile +++ b/package/network/utils/ebtables/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=ebtables PKG_VERSION:=2.0.10-4 -PKG_RELEASE:=4 +PKG_RELEASE:=5 PKG_SOURCE:=$(PKG_NAME)-v$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=@SF/ebtables |