lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Fri, 17 Feb 2017 11:47:57 +0100 From: Jiri Slaby <jslaby@...e.cz> To: mingo@...hat.com Cc: tglx@...utronix.de, hpa@...or.com, x86@...nel.org, jpoimboe@...hat.com, linux-kernel@...r.kernel.org, Jiri Slaby <jslaby@...e.cz> Subject: [PREVIEW 10/10] linkage: add .cfi_{start/end}proc to ENTRY/ENDPROC This is just a preview, not to merged now, only later with DWARF unwinder series. This is what the series will serve for (aside from cleanup and unification). I am aware of CFI_STARTPROC and CFI_ENDPROC left defined in other archs in spite of cfi annotations removal ages ago. For simplicity. I am using DW_ prefix here. Signed-off-by: Jiri Slaby <jslaby@...e.cz> --- include/linux/linkage.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/include/linux/linkage.h b/include/linux/linkage.h index fe5bbdac719b..af14364a63ef 100644 --- a/include/linux/linkage.h +++ b/include/linux/linkage.h @@ -72,6 +72,14 @@ #define __ALIGN_STR ".align 4,0x90" #endif +#ifdef CONFIG_X86 /* to be replaced by CONFIG_DWARF_UNWIND after 01 tests */ +#define DW_CFI_STARTPROC .cfi_startproc +#define DW_CFI_ENDPROC .cfi_endproc +#else +#define DW_CFI_STARTPROC +#define DW_CFI_ENDPROC +#endif + #ifdef __ASSEMBLY__ #ifndef LINKER_SCRIPT @@ -92,7 +100,8 @@ #ifndef ENTRY_LOCAL #define ENTRY_LOCAL(name) \ - ENTRY_LOCAL_ALIAS(name) + ENTRY_LOCAL_ALIAS(name) ASM_NL \ + DW_CFI_STARTPROC #endif #ifndef ENTRY @@ -126,6 +135,7 @@ */ #ifndef ENDPROC #define ENDPROC(name) \ + DW_CFI_ENDPROC ASM_NL \ END_ALIAS(name) #endif -- 2.11.1
Powered by blists - more mailing lists