summaryrefslogtreecommitdiff
path: root/src/ldso/x86_64
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-06-19 08:33:27 -0400
committerRich Felker <dalias@aerifal.cx>2011-06-19 08:33:27 -0400
commit779165e6d42cfb3d19859e4eaa0da6807b24ad20 (patch)
treeadcebb3848fe4127d5c8cf594f94bdc969e9086e /src/ldso/x86_64
parent596d60c5650488069ac1bbabb786685ebd3298c1 (diff)
downloadmusl-779165e6d42cfb3d19859e4eaa0da6807b24ad20.tar.gz
musl-779165e6d42cfb3d19859e4eaa0da6807b24ad20.tar.bz2
musl-779165e6d42cfb3d19859e4eaa0da6807b24ad20.tar.xz
musl-779165e6d42cfb3d19859e4eaa0da6807b24ad20.zip
x86_64: ensure that dtor pointer passed to app is 0 so it won't be used
leaving it uninitialized caused unpredictable crashes or worse due to calling an indeterminate function pointer.
Diffstat (limited to 'src/ldso/x86_64')
-rw-r--r--src/ldso/x86_64/start.s1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ldso/x86_64/start.s b/src/ldso/x86_64/start.s
index efb27454..cb0a9e1f 100644
--- a/src/ldso/x86_64/start.s
+++ b/src/ldso/x86_64/start.s
@@ -5,4 +5,5 @@ _start:
lea 8(%rsp),%rsi
lea _GLOBAL_OFFSET_TABLE_(%rip),%rdx
call __dynlink
+ xor %edx,%edx
jmp *%rax