aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/ubinize-image.sh
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2016-07-07 14:43:17 +0200
committerZoltan HERPAI <wigyori@uid0.hu>2016-07-07 14:43:17 +0200
commit50c4176f7356d895535ab7da8892d00f13f5683a (patch)
tree10d1d369cb84ccd45b7b77dfd9c0c0cae18f2e4e /scripts/ubinize-image.sh
parentf9880b48635e0245a872c166baf8a243af19b9c4 (diff)
downloadmaster-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 'scripts/ubinize-image.sh')
0 files changed, 0 insertions, 0 deletions