This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]