-
-
Notifications
You must be signed in to change notification settings - Fork 470
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Previously, if two or more VERSION clauses match to the same symbol, the first one took precedence. This was incompatible with GNU ld, which gives the last one the highesth priority. This change inverted the priority so that the last one will take precedence other the others. Fixes #1158
- Loading branch information
Showing
4 changed files
with
52 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
. $(dirname $0)/common.inc | ||
|
||
cat <<'EOF' > $t/a.ver | ||
VER1 { foo*; }; | ||
VER2 { foo*bar*; }; | ||
EOF | ||
|
||
cat <<EOF | $CC -fPIC -c -o $t/b.o -xc - | ||
void foo_bar() {} | ||
EOF | ||
|
||
$CC -B. -shared -Wl,--version-script=$t/a.ver -o $t/c.so $t/b.o | ||
readelf -W --dyn-syms $t/c.so > $t/log | ||
grep -Fq 'foo_bar@@VER2' $t/log |