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 /emulator/gps | |
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
Diffstat (limited to 'emulator/gps')
-rw-r--r-- | emulator/gps/gps_qemu.c | 2 |
1 files changed, 1 insertions, 1 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, |