diff options
Diffstat (limited to 'target/linux/uml/patches')
-rw-r--r-- | target/linux/uml/patches/002-gcc4_unfortify_source.patch | 10 | ||||
-rw-r--r-- | target/linux/uml/patches/901-lib_zlib_deflate_visible.patch | 2 |
2 files changed, 11 insertions, 1 deletions
diff --git a/target/linux/uml/patches/002-gcc4_unfortify_source.patch b/target/linux/uml/patches/002-gcc4_unfortify_source.patch index b13e5df521..2be33d02a3 100644 --- a/target/linux/uml/patches/002-gcc4_unfortify_source.patch +++ b/target/linux/uml/patches/002-gcc4_unfortify_source.patch @@ -9,3 +9,13 @@ +KBUILD_CFLAGS += $(call cc-option,-U_FORTIFY_SOURCE) + KBUILD_CFLAGS += $(cflags-y) +--- a/arch/um/Makefile-x86_64 ++++ b/arch/um/Makefile-x86_64 +@@ -24,3 +24,7 @@ LINK-y += -m64 + + # Do unit-at-a-time unconditionally on x86_64, following the host + KBUILD_CFLAGS += $(call cc-option,-funit-at-a-time) ++ ++# disable compile-time buffer checks, enabled by default on Ubuntu 8.10 ++# and later ++KBUILD_CFLAGS += $(call cc-option,-U_FORTIFY_SOURCE) diff --git a/target/linux/uml/patches/901-lib_zlib_deflate_visible.patch b/target/linux/uml/patches/901-lib_zlib_deflate_visible.patch index bac8fcfa97..b71a673314 100644 --- a/target/linux/uml/patches/901-lib_zlib_deflate_visible.patch +++ b/target/linux/uml/patches/901-lib_zlib_deflate_visible.patch @@ -3,7 +3,7 @@ or as a module --- a/lib/Kconfig +++ b/lib/Kconfig -@@ -83,7 +83,7 @@ config ZLIB_INFLATE +@@ -92,7 +92,7 @@ config ZLIB_INFLATE tristate config ZLIB_DEFLATE |