diff options
| author | Nick Kralevich <nnk@google.com> | 2012-03-01 17:43:49 -0800 |
|---|---|---|
| committer | Nick Kralevich <nnk@google.com> | 2012-03-01 17:43:49 -0800 |
| commit | 96c829d5a43905ad32450ff0eed4220162ecc30a (patch) | |
| tree | 21132ca64ef1b29a6014dcae831b54ccf55f656b | |
| parent | 33c16676b738dfa433c267578ce37a93710cef7a (diff) | |
| download | sdk-96c829d5a43905ad32450ff0eed4220162ecc30a.zip sdk-96c829d5a43905ad32450ff0eed4220162ecc30a.tar.gz sdk-96c829d5a43905ad32450ff0eed4220162ecc30a.tar.bz2 | |
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: I5324418b217abbfe95e7b39825d52cc8d6e26732
| -rw-r--r-- | emulator/gps/gps_qemu.c | 2 | ||||
| -rw-r--r-- | emulator/sensors/sensors_qemu.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/emulator/gps/gps_qemu.c b/emulator/gps/gps_qemu.c index 78e0bf2..eebe8d6 100644 --- a/emulator/gps/gps_qemu.c +++ b/emulator/gps/gps_qemu.c @@ -930,7 +930,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, diff --git a/emulator/sensors/sensors_qemu.c b/emulator/sensors/sensors_qemu.c index 156ee58..978eaeb 100644 --- a/emulator/sensors/sensors_qemu.c +++ b/emulator/sensors/sensors_qemu.c @@ -623,7 +623,7 @@ static struct hw_module_methods_t sensors_module_methods = { .open = open_sensors }; -const struct sensors_module_t HAL_MODULE_INFO_SYM = { +struct sensors_module_t HAL_MODULE_INFO_SYM = { .common = { .tag = HARDWARE_MODULE_TAG, .version_major = 1, |
