summaryrefslogtreecommitdiff
path: root/src/libelogind
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2015-06-17 07:23:31 +0200
committerSven Eden <yamakuzure@gmx.net>2017-03-14 10:03:03 +0100
commit6eff6dc0d80fc585925f1d7fd02898b1af46b6fe (patch)
tree391221b213ad1aa2384d7098f475c6380caa13c1 /src/libelogind
parented3fd617456efb0aac69526e6350441415792420 (diff)
build-sys: hide magic section variables from exported symbols
https://github.com/systemd/systemd/issues/234
Diffstat (limited to 'src/libelogind')
-rw-r--r--src/libelogind/sd-bus/bus-error.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/libelogind/sd-bus/bus-error.c b/src/libelogind/sd-bus/bus-error.c
index dac157be1..64a5a972a 100644
--- a/src/libelogind/sd-bus/bus-error.c
+++ b/src/libelogind/sd-bus/bus-error.c
@@ -70,9 +70,11 @@ BUS_ERROR_MAP_ELF_REGISTER const sd_bus_error_map bus_standard_errors[] = {
SD_BUS_ERROR_MAP_END
};
-/* GCC maps this magically to the beginning and end of the BUS_ERROR_MAP section */
-extern const sd_bus_error_map __start_BUS_ERROR_MAP[];
-extern const sd_bus_error_map __stop_BUS_ERROR_MAP[];
+/* GCC maps this magically to the beginning and end of the BUS_ERROR_MAP section.
+ * Hide them; for currently unknown reasons they get exported to the shared libries
+ * even without being listed in the sym file. */
+extern const sd_bus_error_map __start_BUS_ERROR_MAP[] _hidden_;
+extern const sd_bus_error_map __stop_BUS_ERROR_MAP[] _hidden_;
/* Additional maps registered with sd_bus_error_add_map() are in this
* NULL terminated array */