Commit 31ec0649 authored by Simon McVittie's avatar Simon McVittie Committed by Vivek Das Mohapatra
Browse files

tests: Make older linkers happy with one of our test libraries

The linker used in Steam Runtime 1 'scout', which is from several years
ago, doesn't seem to like a symbol being made an alias for a versioned
symbol of the same name. Rename the symbol so that only the versioned
aliases get the same basename.

Signed-off-by: Simon McVittie's avatarSimon McVittie <>
parent 1fd9e54b
Pipeline #8211 passed with stage
in 8 minutes and 23 seconds
......@@ -3,6 +3,6 @@ int symbol1(int x) { return x; }
__asm__(".symver _original_symbol2,symbol2@LIBVERSIONED1");
__attribute__((__visibility__("default"))) int _original_symbol2(int);
int _original_symbol2(int x) { return x; }
__asm__(".symver symbol2,symbol2@@LIBVERSIONED2");
__attribute__((__visibility__("default"))) int symbol2(int);
int symbol2(int x) { return x + 1; }
__asm__(".symver _new_symbol2,symbol2@@LIBVERSIONED2");
__attribute__((__visibility__("default"))) int _new_symbol2(int);
int _new_symbol2(int x) { return x + 1; }
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment