[PATCH] arm64: split elf relocs into a separate header.

Ard Biesheuvel ard.biesheuvel at linaro.org
Tue Jan 12 03:55:21 PST 2016


On 8 January 2016 at 16:59, Will Deacon <will.deacon at arm.com> wrote:
> On Fri, Jan 08, 2016 at 12:41:49PM +0000, Mark Rutland wrote:
>> 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



More information about the linux-arm-kernel mailing list