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: I035932858b561a37be4d788639fd5e910e12b234
diff --git a/liblights/lights.c b/liblights/lights.c
index fed150c..f75b7e3 100644
--- a/liblights/lights.c
+++ b/liblights/lights.c
@@ -410,7 +410,7 @@
/*
* The lights Module
*/
-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,