This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] rtld, x86_64: Add missing cfi directives
- From: Jiri Olsa <jolsa at redhat dot com>
- To: libc-alpha at sourceware dot org
- Cc: drepper at gmail dot com
- Date: Fri, 19 Aug 2011 14:47:47 +0200
- Subject: [PATCH] rtld, x86_64: Add missing cfi directives
hi,
inside sysdeps/x86_64/dl-trampoline.S file, the dl-trampoline.h is
included for both no_avx and have_avx cases.
Since the CFI data inside the dl-trampoline.h change the cfa info,
so we must fix it to the state before the first include.
thanks,
jirka
---
2011-08-19 Jiri Olsa <jolsa@redhat.com>
* sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Add missing
cfi directives.
diff --git a/sysdeps/x86_64/dl-trampoline.S b/sysdeps/x86_64/dl-trampoline.S
index 45a2dc2..4bda797 100644
--- a/sysdeps/x86_64/dl-trampoline.S
+++ b/sysdeps/x86_64/dl-trampoline.S
@@ -163,6 +163,9 @@ L(have_avx):
.align 16
L(no_avx):
# endif
+ cfi_adjust_cfa_offset(48)
+ cfi_rel_offset(%rbx, 0)
+ cfi_def_cfa_register(%rbx)
# undef RESTORE_AVX
# include "dl-trampoline.h"
--
1.7.4.4