Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 231c4ac3 authored by Ian Coolidge's avatar Ian Coolidge
Browse files

Set default symbol visibility to 'hidden'.

Bug: 20427982
Change-Id: I003469d6dfce681a38baa71b5709236a1a4a2189
parent ef9f725f
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -17,7 +17,10 @@ ifneq ($(TARGET_BUILD_VARIANT),user)
bdroid_CFLAGS += -DBLUEDROID_DEBUG
endif

bdroid_CFLAGS += -DEXPORT_SYMBOL="__attribute__((visibility(\"default\")))"

bdroid_CFLAGS += \
  -fvisibility=hidden \
  -Wall \
  -Wno-unused-parameter \
  -Wunused-but-set-variable \
+1 −1
Original line number Diff line number Diff line
@@ -51,7 +51,7 @@ static future_t *clean_up(void) {
}

// Temp module until GKI dies
const module_t gki_module = {
EXPORT_SYMBOL const module_t gki_module = {
  .name = GKI_MODULE,
  .init = init,
  .start_up = NULL,
+1 −1
Original line number Diff line number Diff line
@@ -142,7 +142,7 @@ static future_t *counter_clean_up(void) {
  return future_new_immediate(FUTURE_SUCCESS);
}

module_t counter_module = {
EXPORT_SYMBOL module_t counter_module = {
  .name = COUNTER_MODULE,
  .init = counter_init,
  .start_up = NULL,
+1 −1
Original line number Diff line number Diff line
@@ -477,7 +477,7 @@ static struct hw_module_methods_t bt_stack_module_methods = {
    .open = open_bluetooth_stack,
};

struct hw_module_t HAL_MODULE_INFO_SYM = {
EXPORT_SYMBOL struct hw_module_t HAL_MODULE_INFO_SYM = {
    .tag = HARDWARE_MODULE_TAG,
    .version_major = 1,
    .version_minor = 0,
+1 −1
Original line number Diff line number Diff line
@@ -142,7 +142,7 @@ static future_t *clean_up(void) {
  return future_new_immediate(FUTURE_SUCCESS);
}

const module_t btif_config_module = {
EXPORT_SYMBOL const module_t btif_config_module = {
  .name = BTIF_CONFIG_MODULE,
  .init = init,
  .start_up = NULL,
Loading