diff options
author | Nick Kralevich <nnk@google.com> | 2012-03-01 17:07:20 -0800 |
---|---|---|
committer | Nick Kralevich <nnk@google.com> | 2012-03-01 17:07:20 -0800 |
commit | 0c323f386b8b5dc7b52087ba7fa48529a93c5cb7 (patch) | |
tree | e5cbd1d1e525ed8592ee820e5fd6d1161e1f18ea /liblight | |
parent | 1526a50421f56b874245bb32ee8e305ed90c07f9 (diff) | |
download | device_samsung_crespo-0c323f386b8b5dc7b52087ba7fa48529a93c5cb7.zip device_samsung_crespo-0c323f386b8b5dc7b52087ba7fa48529a93c5cb7.tar.gz device_samsung_crespo-0c323f386b8b5dc7b52087ba7fa48529a93c5cb7.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: I5ab4ce539be0335b0c86d4cdf34f7c29fa410424
Diffstat (limited to 'liblight')
-rwxr-xr-x | liblight/lights.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/liblight/lights.c b/liblight/lights.c index 1b54896..bee698a 100755 --- a/liblight/lights.c +++ b/liblight/lights.c @@ -118,7 +118,7 @@ static struct hw_module_methods_t lights_module_methods = { .open = open_lights, }; -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, |