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
This commit is contained in:
Nick Kralevich 2012-03-01 17:07:59 -08:00
parent 8b3fe9b3cf
commit 7573253c26

View file

@ -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,