aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hines <srhines@google.com>2020-08-20 18:28:35 -0700
committerStephen Hines <srhines@google.com>2020-08-20 18:28:35 -0700
commit480af4adb72f4e77ca451ba236e87fd155fee805 (patch)
tree1b94a6555fe0154eda18f66f7ee144285a50d8ab
parent27201c88d0657c2fa338e520eb0e0b5b83139f26 (diff)
downloadlibffi-480af4adb72f4e77ca451ba236e87fd155fee805.tar.gz
Switch .eh_frame to readonly (from "aw" to "a").
external/libffi/src/x86/sysv.S:832:1: error: changed section flags for .eh_frame, expected: 0x2 .section .eh_frame,"aw",@progbits ^ Bug: http://b/155835175 Test: mma in external/libffi for an x86 target Change-Id: I5cd91db87461fd74aa473e38d1682c190d75bc2b
-rw-r--r--linux-x86/fficonfig.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/linux-x86/fficonfig.h b/linux-x86/fficonfig.h
index b9391744..5b3aa8b3 100644
--- a/linux-x86/fficonfig.h
+++ b/linux-x86/fficonfig.h
@@ -9,7 +9,7 @@
#undef C_ALLOCA
/* Define to the flags needed for the .section .eh_frame directive. */
-#define EH_FRAME_FLAGS "aw"
+#define EH_FRAME_FLAGS "a"
/* Define this if you want extra debugging. */
#undef FFI_DEBUG
@@ -68,7 +68,7 @@
#define HAVE_MMAP_FILE 1
/* Define if .eh_frame sections should be read-only. */
-#undef HAVE_RO_EH_FRAME
+#define HAVE_RO_EH_FRAME 1
/* Define to 1 if you have the <stdint.h> header file. */
#define HAVE_STDINT_H 1