Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1318205
| From | Mark Rutland <mark.rutland@arm.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v4 14/22] arm64: make asm/elf.h available to asm files |
| Date | 2016-01-26 18:50 +0100 |
| Message-ID | <qVfUD-7wd-11@gated-at.bofh.it> (permalink) |
| References | <qVfrz-7iQ-3@gated-at.bofh.it> <qVfrD-7iQ-73@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Tue, Jan 26, 2016 at 06:10:41PM +0100, Ard Biesheuvel wrote: > This reshuffles some code in asm/elf.h and puts a #ifndef __ASSEMBLY__ > around its C definitions so that the CPP defines can be used in asm > source files as well. > > Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Acked-by: Mark Rutland <mark.rutland@arm.com> Mark. > --- > arch/arm64/include/asm/elf.h | 22 ++++++++++++-------- > 1 file changed, 13 insertions(+), 9 deletions(-) > > diff --git a/arch/arm64/include/asm/elf.h b/arch/arm64/include/asm/elf.h > index faad6df49e5b..435f55952e1f 100644 > --- a/arch/arm64/include/asm/elf.h > +++ b/arch/arm64/include/asm/elf.h > @@ -24,15 +24,6 @@ > #include <asm/ptrace.h> > #include <asm/user.h> > > -typedef unsigned long elf_greg_t; > - > -#define ELF_NGREG (sizeof(struct user_pt_regs) / sizeof(elf_greg_t)) > -#define ELF_CORE_COPY_REGS(dest, regs) \ > - *(struct user_pt_regs *)&(dest) = (regs)->user_regs; > - > -typedef elf_greg_t elf_gregset_t[ELF_NGREG]; > -typedef struct user_fpsimd_state elf_fpregset_t; > - > /* > * AArch64 static relocation types. > */ > @@ -127,6 +118,17 @@ typedef struct user_fpsimd_state elf_fpregset_t; > */ > #define ELF_ET_DYN_BASE (2 * TASK_SIZE_64 / 3) > > +#ifndef __ASSEMBLY__ > + > +typedef unsigned long elf_greg_t; > + > +#define ELF_NGREG (sizeof(struct user_pt_regs) / sizeof(elf_greg_t)) > +#define ELF_CORE_COPY_REGS(dest, regs) \ > + *(struct user_pt_regs *)&(dest) = (regs)->user_regs; > + > +typedef elf_greg_t elf_gregset_t[ELF_NGREG]; > +typedef struct user_fpsimd_state elf_fpregset_t; > + > /* > * When the program starts, a1 contains a pointer to a function to be > * registered with atexit, as per the SVR4 ABI. A value of 0 means we have no > @@ -186,4 +188,6 @@ extern int aarch32_setup_vectors_page(struct linux_binprm *bprm, > > #endif /* CONFIG_COMPAT */ > > +#endif /* !__ASSEMBLY__ */ > + > #endif > -- > 2.5.0 >
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH v4 00/22] arm64: implement support for KASLR Ard Biesheuvel <ard.biesheuvel@linaro.org> - 2016-01-26 18:20 +0100
[PATCH v4 16/22] kallsyms: add support for relative offsets in kallsyms address table Ard Biesheuvel <ard.biesheuvel@linaro.org> - 2016-01-26 18:20 +0100
[PATCH v4 17/22] arm64: add support for building the kernel as a relocate PIE binary Ard Biesheuvel <ard.biesheuvel@linaro.org> - 2016-01-26 18:20 +0100
[PATCH v4 03/22] arm64: pgtable: implement static [pte|pmd|pud]_offset variants Ard Biesheuvel <ard.biesheuvel@linaro.org> - 2016-01-26 18:20 +0100
[PATCH v4 10/22] arm64: switch to relative exception tables Ard Biesheuvel <ard.biesheuvel@linaro.org> - 2016-01-26 18:20 +0100
[PATCH v4 06/22] arm64: add support for ioremap() block mappings Ard Biesheuvel <ard.biesheuvel@linaro.org> - 2016-01-26 18:20 +0100
[PATCH v4 09/22] extable: add support for relative extables to search and sort routines Ard Biesheuvel <ard.biesheuvel@linaro.org> - 2016-01-26 18:20 +0100
[PATCH v4 13/22] arm64: allow kernel Image to be loaded anywhere in physical memory Ard Biesheuvel <ard.biesheuvel@linaro.org> - 2016-01-26 18:20 +0100
[PATCH v4 19/22] efi: stub: implement efi_get_random_bytes() based on EFI_RNG_PROTOCOL Ard Biesheuvel <ard.biesheuvel@linaro.org> - 2016-01-26 18:20 +0100
[PATCH v4 04/22] arm64: decouple early fixmap init from linear mapping Ard Biesheuvel <ard.biesheuvel@linaro.org> - 2016-01-26 18:20 +0100
[PATCH v4 20/22] efi: stub: add implementation of efi_random_alloc() Ard Biesheuvel <ard.biesheuvel@linaro.org> - 2016-01-26 18:20 +0100
Re: [PATCH v4 20/22] efi: stub: add implementation of efi_random_alloc() Kees Cook <keescook@chromium.org> - 2016-01-27 01:00 +0100
[PATCH v4 02/22] arm64: introduce KIMAGE_VADDR as the virtual base of the kernel region Ard Biesheuvel <ard.biesheuvel@linaro.org> - 2016-01-26 18:20 +0100
[PATCH v4 18/22] arm64: add support for kernel ASLR Ard Biesheuvel <ard.biesheuvel@linaro.org> - 2016-01-26 18:20 +0100
[PATCH v4 14/22] arm64: make asm/elf.h available to asm files Ard Biesheuvel <ard.biesheuvel@linaro.org> - 2016-01-26 18:20 +0100
Re: [PATCH v4 14/22] arm64: make asm/elf.h available to asm files Mark Rutland <mark.rutland@arm.com> - 2016-01-26 18:50 +0100
csiph-web