From 0db1dc1c4a283d13c826108b20871ab5e02b800f Mon Sep 17 00:00:00 2001 From: ppw0 Date: Sun, 26 Nov 2023 10:51:18 +0100 Subject: [PATCH] fix error with "-Wl,--gc-sections" --- test/xvfb-wrapper.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/xvfb-wrapper.h b/test/xvfb-wrapper.h index 222fa3e..80c84a9 100644 --- a/test/xvfb-wrapper.h +++ b/test/xvfb-wrapper.h @@ -31,7 +31,7 @@ struct test_function { #define X11_TEST(_func) \ static int _func(char* display); \ static const struct test_function _test_##_func \ -__attribute__((used)) \ +__attribute__((retain,used)) \ __attribute__((section("test_functions_section"))) = { \ .name = #_func, \ .func = _func, \