[package] base-files: add an experimental "-c" flag which tries to preserve *all...
[openwrt.git] / target / linux / coldfire / patches / 058-mcfv4e_tlsnptl_elf_reloc.patch
1 From a64bac5fc75aa2872a8abe54a9f9aaa0fce31588 Mon Sep 17 00:00:00 2001
2 From: Kurt Mahan <kmahan@freescale.com>
3 Date: Thu, 22 May 2008 09:50:31 -0600
4 Subject: [PATCH] Add elf relocation types for TLS/NPTL.
5
6 These relocations are from the draft TLS/NPTL ABI document v0.2
7 by Joseph Myers of CodeSourcery.
8
9 LTIBName: mcfv4e-tlsnptl-elf-reloc
10 Signed-off-by: Kurt Mahan <kmahan@freescale.com>
11 ---
12 include/asm-m68k/elf.h | 20 ++++++++++++++++++++
13 1 files changed, 20 insertions(+), 0 deletions(-)
14
15 --- a/include/asm-m68k/elf.h
16 +++ b/include/asm-m68k/elf.h
17 @@ -34,6 +34,26 @@
18 #define R_68K_GLOB_DAT 20
19 #define R_68K_JMP_SLOT 21
20 #define R_68K_RELATIVE 22
21 +/* TLS static relocations */
22 +#define R_68K_TLS_GD32 25
23 +#define R_68K_TLS_GD16 26
24 +#define R_68K_TLS_GD8 27
25 +#define R_68K_TLS_LDM32 28
26 +#define R_68K_TLS_LDM16 29
27 +#define R_68K_TLS_LDM8 30
28 +#define R_68K_TLS_LDO32 31
29 +#define R_68K_TLS_LDO16 32
30 +#define R_68K_TLS_LDO8 33
31 +#define R_68K_TLS_IE32 34
32 +#define R_68K_TLS_IE16 35
33 +#define R_68K_TLS_IE8 36
34 +#define R_68K_TLS_LE32 37
35 +#define R_68K_TLS_LE16 38
36 +#define R_68K_TLS_LE8 39
37 +/* TLS dynamic relocations */
38 +#define R_68K_TLS_DTPMOD32 40
39 +#define R_68K_TLS_DTPREL32 41
40 +#define R_68K_TLS_TPREL32 42
41
42 typedef unsigned long elf_greg_t;
43
This page took 0.044803 seconds and 5 git commands to generate.