diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2019-10-05 01:01:24 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2019-10-05 01:01:24 +0000 |
commit | 280e58b193b6193706bf45fd28abcaf79588d33c (patch) | |
tree | 10c080f43bfbcadc31a460480c709b7ac767eab8 /lib | |
parent | 14befd85698930ec81a32bf78699f5e0f9649458 (diff) |
The mips64 symbol table layout means we have to consider symbol visibility
and skip 'protected' symbols when identifying which functions will be
subjects of lazy resolution
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/check_sym | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/check_sym b/lib/check_sym index 7b91a8f0977..a7dd9c5278b 100755 --- a/lib/check_sym +++ b/lib/check_sym @@ -1,5 +1,5 @@ #!/bin/ksh -# $OpenBSD: check_sym,v 1.9 2019/10/05 00:59:24 guenther Exp $ +# $OpenBSD: check_sym,v 1.10 2019/10/05 01:01:23 guenther Exp $ # # Copyright (c) 2016,2019 Philip Guenther <guenther@openbsd.org> # @@ -223,6 +223,7 @@ jump_slots() { mips64) # the $((gotsym$1)) converts hex to decimal awk -v g=$((gotsym$1)) \ '/^Symbol table ..symtab/{exit} + $6 == "PROTECTED" { next } $1+0 >= g && $4 == "FUNC" {print $8}' /tmp/s$1 ;; *) awk '/JU*MP_SL/ && $5 != ""{print $5}' /tmp/r$1 |