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:
parent
8b3fe9b3cf
commit
7573253c26
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue