From 828ea2c47d352ae7992ea5acc218fd80a4ce5b8b Mon Sep 17 00:00:00 2001 From: Pawel Dziepak Date: Sun, 4 May 2014 02:32:00 +0200 Subject: [PATCH] headers/system: add ELF TLS related constants --- headers/private/system/arch/x86/arch_elf.h | 2 ++ headers/private/system/elf_common.h | 1 + 2 files changed, 3 insertions(+) diff --git a/headers/private/system/arch/x86/arch_elf.h b/headers/private/system/arch/x86/arch_elf.h index 922ab095a7..a6b0737182 100644 --- a/headers/private/system/arch/x86/arch_elf.h +++ b/headers/private/system/arch/x86/arch_elf.h @@ -18,6 +18,8 @@ #define R_386_RELATIVE 8 /* add load address of shared object */ #define R_386_GOTOFF 9 /* add GOT relative symbol address */ #define R_386_GOTPC 10 /* add PC relative GOT table address */ +#define R_386_TLS_DTPMOD32 35 +#define R_386_TLS_DTPOFF32 36 #ifdef _BOOT_MODE # include "../x86_64/arch_elf.h" diff --git a/headers/private/system/elf_common.h b/headers/private/system/elf_common.h index 31eb0c0ecd..73a7743eff 100644 --- a/headers/private/system/elf_common.h +++ b/headers/private/system/elf_common.h @@ -139,6 +139,7 @@ #define PT_NOTE 4 #define PT_SHLIB 5 #define PT_PHDR 6 +#define PT_TLS 7 #define PT_STACK 0x6474e551 #define PT_LOPROC 0x70000000