Skip to content

Commit

Permalink
Use correct symbol form
Browse files Browse the repository at this point in the history
  • Loading branch information
torben-hansen committed Aug 27, 2024
1 parent b11fcf1 commit c8ce45c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
10 changes: 5 additions & 5 deletions util/fipstools/delocate/testdata/x86_64-LabelRewrite/in1.s
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ foo:
movq $0, %rax
ret

.type xfoo, @function
.globl xfoo
xfoo:
.type x25519_foo, @function
.globl x25519_foo
x25519_foo:
movq $0, %rax
ret

Expand All @@ -17,9 +17,9 @@ bar:
jbe foo
jne foo

# References potentially matching arm registers e.g. 'x[a-z][a-z]' should be
# References potentially matching arm registers e.g. 'x[0-9][0-9]' should be
# matched as global symbols and rewritten to the corresponding local target.
call xfoo
call x25519_foo

# Jumps to PLT symbols are rewritten through redirectors.
call memcpy@PLT
Expand Down
14 changes: 7 additions & 7 deletions util/fipstools/delocate/testdata/x86_64-LabelRewrite/out.s
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ foo:
movq $0, %rax
ret

.type xfoo, @function
.globl xfoo
.Lxfoo_local_target:
xfoo:
.type x25519_foo, @function
.globl x25519_foo
.Lx25519_foo_local_target:
x25519_foo:
movq $0, %rax
ret

Expand All @@ -28,10 +28,10 @@ bar:
# WAS jne foo
jne .Lfoo_local_target

# References potentially matching arm registers e.g. 'x[a-z][a-z]' should be
# References potentially matching arm registers e.g. 'x[0-9][0-9]' should be
# matched as global symbols and rewritten to the corresponding local target.
# WAS call xfoo
call .Lxfoo_local_target
# WAS call x25519_foo
call .Lx25519_foo_local_target

# Jumps to PLT symbols are rewritten through redirectors.
# WAS call memcpy@PLT
Expand Down

0 comments on commit c8ce45c

Please sign in to comment.