diff options
author | Jo-Philipp Wich <jo@mein.io> | 2016-07-07 14:43:17 +0200 |
---|---|---|
committer | Zoltan HERPAI <wigyori@uid0.hu> | 2016-07-07 14:43:17 +0200 |
commit | 50c4176f7356d895535ab7da8892d00f13f5683a (patch) | |
tree | 10d1d369cb84ccd45b7b77dfd9c0c0cae18f2e4e /package/network/utils/ebtables/Makefile | |
parent | f9880b48635e0245a872c166baf8a243af19b9c4 (diff) | |
download | master-187ad058-50c4176f7356d895535ab7da8892d00f13f5683a.tar.gz master-187ad058-50c4176f7356d895535ab7da8892d00f13f5683a.tar.bz2 master-187ad058-50c4176f7356d895535ab7da8892d00f13f5683a.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 |