aboutsummaryrefslogtreecommitdiffstats
path: root/tests/checkasm/x86
diff options
context:
space:
mode:
authorGeza Lore <gezalore@gmail.com>2015-10-12 13:13:00 +0100
committerHenrik Gramner <henrik@gramner.com>2016-01-21 23:19:46 +0100
commitd39c229e54d6a5a7d9bb89e9fe5b086a95c9cca9 (patch)
treeeeeb03b08ee5725e31d5034a56bfa0907da570fc /tests/checkasm/x86
parentd3662777e070b297ead7c23883d1a7e77d37193f (diff)
downloadffmpeg-d39c229e54d6a5a7d9bb89e9fe5b086a95c9cca9.tar.gz
x86inc: Add debug symbols indicating sizes of compiled functions
Some debuggers/profilers use this metadata to determine which function a given instruction is in; without it they get can confused by local labels (if you haven't stripped those). On the other hand, some tools are still confused even with this metadata. e.g. this fixes `gdb`, but not `perf`. Currently only implemented for ELF.
Diffstat (limited to 'tests/checkasm/x86')
-rw-r--r--tests/checkasm/x86/checkasm.asm8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/checkasm/x86/checkasm.asm b/tests/checkasm/x86/checkasm.asm
index e1dde6e60a..d12333b308 100644
--- a/tests/checkasm/x86/checkasm.asm
+++ b/tests/checkasm/x86/checkasm.asm
@@ -66,14 +66,14 @@ cextern fail_func
;-----------------------------------------------------------------------------
cglobal stack_clobber, 1,2
; Clobber the stack with junk below the stack pointer
- %define size (max_args+6)*8
- SUB rsp, size
- mov r1, size-8
+ %define argsize (max_args+6)*8
+ SUB rsp, argsize
+ mov r1, argsize-8
.loop:
mov [rsp+r1], r0
sub r1, 8
jge .loop
- ADD rsp, size
+ ADD rsp, argsize
RET
%if WIN64