Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

x86/vdso: Replace hex int80 CFI annotations with GAS directives

Maintaining the current CFI annotations written in R'lyehian is
difficult for most of us. Translate them to something a little
closer to English.

This will remove the CFI data for kernels built with extremely
old versions of binutils. I think this is a fair tradeoff for
the ability for mortals to edit the asm.

Signed-off-by: Andy Lutomirski <luto@kernel.org>
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Denys Vlasenko <dvlasenk@redhat.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-kernel@vger.kernel.org
Link: http://lkml.kernel.org/r/ae3ff4ff5278b4bfc1e1dab368823469866d4b71.1444091584.git.luto@kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>

authored by

Andy Lutomirski and committed by
Ingo Molnar
29c0ce95 f24f9108

+8 -40
+8 -40
arch/x86/entry/vdso/vdso32/system_call.S
··· 1 1 /* 2 2 * Code for the vDSO. This version uses the old int $0x80 method. 3 - * 3 + */ 4 + 5 + #include <asm/dwarf2.h> 6 + 7 + /* 4 8 * First get the common code for the sigreturn entry points. 5 9 * This must come first. 6 10 */ ··· 15 11 .type __kernel_vsyscall,@function 16 12 ALIGN 17 13 __kernel_vsyscall: 18 - .LSTART_vsyscall: 14 + CFI_STARTPROC 19 15 int $0x80 20 16 ret 21 - .LEND_vsyscall: 22 - .size __kernel_vsyscall,.-.LSTART_vsyscall 23 - .previous 17 + CFI_ENDPROC 24 18 25 - .section .eh_frame,"a",@progbits 26 - .LSTARTFRAMEDLSI: 27 - .long .LENDCIEDLSI-.LSTARTCIEDLSI 28 - .LSTARTCIEDLSI: 29 - .long 0 /* CIE ID */ 30 - .byte 1 /* Version number */ 31 - .string "zR" /* NUL-terminated augmentation string */ 32 - .uleb128 1 /* Code alignment factor */ 33 - .sleb128 -4 /* Data alignment factor */ 34 - .byte 8 /* Return address register column */ 35 - .uleb128 1 /* Augmentation value length */ 36 - .byte 0x1b /* DW_EH_PE_pcrel|DW_EH_PE_sdata4. */ 37 - .byte 0x0c /* DW_CFA_def_cfa */ 38 - .uleb128 4 39 - .uleb128 4 40 - .byte 0x88 /* DW_CFA_offset, column 0x8 */ 41 - .uleb128 1 42 - .align 4 43 - .LENDCIEDLSI: 44 - .long .LENDFDEDLSI-.LSTARTFDEDLSI /* Length FDE */ 45 - .LSTARTFDEDLSI: 46 - .long .LSTARTFDEDLSI-.LSTARTFRAMEDLSI /* CIE pointer */ 47 - .long .LSTART_vsyscall-. /* PC-relative start address */ 48 - .long .LEND_vsyscall-.LSTART_vsyscall 49 - .uleb128 0 50 - .align 4 51 - .LENDFDEDLSI: 52 - .previous 53 - 54 - /* 55 - * Pad out the segment to match the size of the sysenter.S version. 56 - */ 57 - VDSO32_vsyscall_eh_frame_size = 0x40 58 - .section .data,"aw",@progbits 59 - .space VDSO32_vsyscall_eh_frame_size-(.LENDFDEDLSI-.LSTARTFRAMEDLSI), 0 19 + .size __kernel_vsyscall,.-__kernel_vsyscall 60 20 .previous