[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v6 4/6] include/elf: Add defines related to note
From: |
Aleksandar Markovic |
Subject: |
Re: [Qemu-devel] [PATCH v6 4/6] include/elf: Add defines related to notes for GNU systems |
Date: |
Thu, 6 Jun 2019 07:45:58 +0200 |
On Jun 5, 2019 11:03 PM, "Richard Henderson" <address@hidden>
wrote:
>
> This is a collection of related
Related to what?
> defines for notes, copied
> from glibc's <elf.h>. We're not going to use all of these
> right away, but it seemed foolish
I don't think this an appropriate word for a commit message.
> to cherry-pick only the
> ones we need now.
>
> Signed-off-by: Richard Henderson <address@hidden>
> ---
> include/elf.h | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
> 1 file changed, 48 insertions(+)
>
> diff --git a/include/elf.h b/include/elf.h
> index ea7708a4ea..6f3eada36f 100644
> --- a/include/elf.h
> +++ b/include/elf.h
> @@ -1650,6 +1650,54 @@ typedef struct elf64_shdr {
> #define NT_ARM_HW_WATCH 0x403 /* ARM hardware watchpoint
registers */
> #define NT_ARM_SYSTEM_CALL 0x404 /* ARM system call number */
>
> +/* Defined note types for GNU systems. */
> +
> +#define NT_GNU_ABI_TAG 1 /* ABI information */
> +#define NT_GNU_HWCAP 2 /* Synthetic hwcap information */
> +#define NT_GNU_BUILD_ID 3 /* Build ID */
> +#define NT_GNU_GOLD_VERSION 4 /* Version of ld.gold */
> +#define NT_GNU_PROPERTY_TYPE_0 5 /* Program property */
> +
> +/* Values used in GNU .note.gnu.property notes
(NT_GNU_PROPERTY_TYPE_0). */
> +
> +#define GNU_PROPERTY_STACK_SIZE 1
> +#define GNU_PROPERTY_NO_COPY_ON_PROTECTED 2
> +
> +#define GNU_PROPERTY_LOPROC 0xc0000000
> +#define GNU_PROPERTY_HIPROC 0xdfffffff
> +#define GNU_PROPERTY_LOUSER 0xe0000000
> +#define GNU_PROPERTY_HIUSER 0xffffffff
> +
> +#define GNU_PROPERTY_X86_ISA_1_USED 0xc0000000
> +#define GNU_PROPERTY_X86_ISA_1_NEEDED 0xc0000001
> +
> +#define GNU_PROPERTY_X86_ISA_1_486 (1U << 0)
> +#define GNU_PROPERTY_X86_ISA_1_586 (1U << 1)
> +#define GNU_PROPERTY_X86_ISA_1_686 (1U << 2)
> +#define GNU_PROPERTY_X86_ISA_1_SSE (1U << 3)
> +#define GNU_PROPERTY_X86_ISA_1_SSE2 (1U << 4)
> +#define GNU_PROPERTY_X86_ISA_1_SSE3 (1U << 5)
> +#define GNU_PROPERTY_X86_ISA_1_SSSE3 (1U << 6)
> +#define GNU_PROPERTY_X86_ISA_1_SSE4_1 (1U << 7)
> +#define GNU_PROPERTY_X86_ISA_1_SSE4_2 (1U << 8)
> +#define GNU_PROPERTY_X86_ISA_1_AVX (1U << 9)
> +#define GNU_PROPERTY_X86_ISA_1_AVX2 (1U << 10)
> +#define GNU_PROPERTY_X86_ISA_1_AVX512F (1U << 11)
> +#define GNU_PROPERTY_X86_ISA_1_AVX512CD (1U << 12)
> +#define GNU_PROPERTY_X86_ISA_1_AVX512ER (1U << 13)
> +#define GNU_PROPERTY_X86_ISA_1_AVX512PF (1U << 14)
> +#define GNU_PROPERTY_X86_ISA_1_AVX512VL (1U << 15)
> +#define GNU_PROPERTY_X86_ISA_1_AVX512DQ (1U << 16)
> +#define GNU_PROPERTY_X86_ISA_1_AVX512BW (1U << 17)
> +
> +#define GNU_PROPERTY_X86_FEATURE_1_AND 0xc0000002
> +#define GNU_PROPERTY_X86_FEATURE_1_IBT (1U << 0)
> +#define GNU_PROPERTY_X86_FEATURE_1_SHSTK (1U << 1)
> +
> +#define GNU_PROPERTY_AARCH64_FEATURE_1_AND 0xc0000000
> +#define GNU_PROPERTY_AARCH64_FEATURE_1_BTI (1u << 0)
> +#define GNU_PROPERTY_AARCH64_FEATURE_1_PAC (1u << 1)
> +
> /*
> * Physical entry point into the kernel.
> *
> --
> 2.17.1
>
>
- [Qemu-devel] [PATCH v6 0/6] linux-user/aarch64: Support PROT_BTI, Richard Henderson, 2019/06/05
- [Qemu-devel] [PATCH v6 1/6] linux-user/aarch64: Reset btype for syscalls and signals, Richard Henderson, 2019/06/05
- [Qemu-devel] [PATCH v6 3/6] linux-user: Set PAGE_TARGET_1 for TARGET_PROT_BTI, Richard Henderson, 2019/06/05
- [Qemu-devel] [PATCH v6 2/6] linux-user: Validate mmap/mprotect prot value, Richard Henderson, 2019/06/05
- [Qemu-devel] [PATCH v6 4/6] include/elf: Add defines related to notes for GNU systems, Richard Henderson, 2019/06/05
- [Qemu-devel] [PATCH v6 5/6] linux-user: Parse NT_GNU_PROPERTY_TYPE_0 notes, Richard Henderson, 2019/06/05
- [Qemu-devel] [PATCH v6 6/6] tests/tcg/aarch64: Add bti smoke test, Richard Henderson, 2019/06/05
- Re: [Qemu-devel] [PATCH v6 0/6] linux-user/aarch64: Support PROT_BTI, no-reply, 2019/06/05