x86, asm: Fix CFI macro invocations to deal with shortcomings in gas
gas prior to (perhaps) 2.16.90 has problems with passing non- parenthesized expressions containing spaces to macros. Spaces, however, get inserted by cpp between any macro expanding to a number and a subsequent + or -. For the +, current x86 gas then removes the space again (future gas may not do so), but for the - the space gets retained and is then considered a separator between macro arguments. Fix the respective definitions for both the - and + cases, so that they neither contain spaces nor make cpp insert any (the latter by adding seemingly redundant parentheses). Signed-off-by:Jan Beulich <jbeulich@novell.com> LKML-Reference: <4CBDBEBA020000780001E05A@vpn.id2.novell.com> Cc: Alexander van Heukelum <heukelum@fastmail.fm> Signed-off-by:
H. Peter Anvin <hpa@linux.intel.com>
Showing
- Kbuild 1 addition, 1 deletionKbuild
- arch/x86/include/asm/calling.h 27 additions, 25 deletionsarch/x86/include/asm/calling.h
- arch/x86/include/asm/entry_arch.h 4 additions, 15 deletionsarch/x86/include/asm/entry_arch.h
- arch/x86/include/asm/segment.h 16 additions, 16 deletionsarch/x86/include/asm/segment.h
- arch/x86/kernel/asm-offsets_32.c 1 addition, 3 deletionsarch/x86/kernel/asm-offsets_32.c
- arch/x86/kernel/entry_32.S 3 additions, 3 deletionsarch/x86/kernel/entry_32.S
- arch/x86/kernel/entry_64.S 4 additions, 16 deletionsarch/x86/kernel/entry_64.S
Loading
Please register or sign in to comment