From 0c323f386b8b5dc7b52087ba7fa48529a93c5cb7 Mon Sep 17 00:00:00 2001 From: Nick Kralevich Date: Thu, 1 Mar 2012 17:07:20 -0800 Subject: 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 --- liblight/lights.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'liblight') 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, -- cgit v1.1