Skip to content
Snippets Groups Projects
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: default avatarSimon McVittie <smcv@collabora.com>
parent 1fd9e54b
Branches
Tags
1 merge request!311Build capsule-capture-libs from a bundled copy of libcapsule
...@@ -3,6 +3,6 @@ int symbol1(int x) { return x; } ...@@ -3,6 +3,6 @@ int symbol1(int x) { return x; }
__asm__(".symver _original_symbol2,symbol2@LIBVERSIONED1"); __asm__(".symver _original_symbol2,symbol2@LIBVERSIONED1");
__attribute__((__visibility__("default"))) int _original_symbol2(int); __attribute__((__visibility__("default"))) int _original_symbol2(int);
int _original_symbol2(int x) { return x; } int _original_symbol2(int x) { return x; }
__asm__(".symver symbol2,symbol2@@LIBVERSIONED2"); __asm__(".symver _new_symbol2,symbol2@@LIBVERSIONED2");
__attribute__((__visibility__("default"))) int symbol2(int); __attribute__((__visibility__("default"))) int _new_symbol2(int);
int symbol2(int x) { return x + 1; } int _new_symbol2(int x) { return x + 1; }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment