summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Kralevich <nnk@google.com>2012-03-01 17:07:59 -0800
committerNick Kralevich <nnk@google.com>2012-03-01 17:07:59 -0800
commit7573253c2637e026e0943620d62ec335e5a9dc10 (patch)
tree04a33a3f8da2432a9dff0bd4c6ba5aa3a933b846
parent8b3fe9b3cff6b59b2f4977dcce9b3c1ae47c2e25 (diff)
downloadgps-jb-mr0-release.tar.gz
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
-rw-r--r--loc_api/libloc_api/gps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/loc_api/libloc_api/gps.c b/loc_api/libloc_api/gps.c
index ec6fbd0..a28a608 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,