[PATCH] arm64: split elf relocs into a separate header.
From: Ard Biesheuvel <hidden>
Date: 2016-01-12 11:55:21
From: Ard Biesheuvel <hidden>
Date: 2016-01-12 11:55:21
On 8 January 2016 at 16:59, Will Deacon [off-list ref] wrote:
On Fri, Jan 08, 2016 at 12:41:49PM +0000, Mark Rutland wrote:quoted
Currently asm/elf.h contains a mixture of simple constants, C structure definitions, and some constants defined terms of constants from other headers (which are themselves mixtures). To enable the use of AArch64 ELF reloc constants from assembly code (s we will need for relocatable kernel support), we need an include without C structure definitions or incldues of other files with such definitions. This patch factors out the relocs into a new header specifically for ELF reloc types.Does #ifdef __ASSEMBLY__ not do the trick?
Actually, it does. The includes in asm/elf.h are guarded that way themselves, so it is simply a matter of moving the C declarations inside a #ifndef __ASSEMBLY__ block