From 7573253c2637e026e0943620d62ec335e5a9dc10 Mon Sep 17 00:00:00 2001 From: Nick Kralevich Date: Thu, 1 Mar 2012 17:07:59 -0800 Subject: [PATCH] remove HAL_MODULE_INFO_SYM const HAL_MODULE_INFO_SYM was declared as read-only, but the struct is written to by libhardware. This causes a segfault when -Wl,-z,relro is enabled. Fixed. Change-Id: Ied24f54a294ea705b06754a419823d595e3def62 --- loc_api/libloc_api/gps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loc_api/libloc_api/gps.c b/loc_api/libloc_api/gps.c index ec6fbd0b..a28a608e 100644 --- a/loc_api/libloc_api/gps.c +++ b/loc_api/libloc_api/gps.c @@ -55,7 +55,7 @@ static struct hw_module_methods_t gps_module_methods = { .open = open_gps }; -const struct hw_module_t HAL_MODULE_INFO_SYM = { +struct hw_module_t HAL_MODULE_INFO_SYM = { .tag = HARDWARE_MODULE_TAG, .version_major = 1, .version_minor = 0,