diff options
author | Imre Kaloz <kaloz@openwrt.org> | 2009-06-23 21:04:37 +0000 |
---|---|---|
committer | Imre Kaloz <kaloz@openwrt.org> | 2009-06-23 21:04:37 +0000 |
commit | ec03ced5fa6eb25eee164839268b538abb965e99 (patch) | |
tree | 6d3382662fa3ad4119d3a3cda223c53949ca4894 /target/linux/coldfire/patches/058-mcfv4e_tlsnptl_elf_reloc.patch | |
parent | 777de3a39c4b92ad53b2b9363f405d0c4c28847a (diff) | |
download | upstream-ec03ced5fa6eb25eee164839268b538abb965e99.tar.gz upstream-ec03ced5fa6eb25eee164839268b538abb965e99.tar.bz2 upstream-ec03ced5fa6eb25eee164839268b538abb965e99.zip |
use broken-out patches for the coldfire to make it easier to follow differences against the bsp
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16547 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/coldfire/patches/058-mcfv4e_tlsnptl_elf_reloc.patch')
-rw-r--r-- | target/linux/coldfire/patches/058-mcfv4e_tlsnptl_elf_reloc.patch | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/target/linux/coldfire/patches/058-mcfv4e_tlsnptl_elf_reloc.patch b/target/linux/coldfire/patches/058-mcfv4e_tlsnptl_elf_reloc.patch new file mode 100644 index 0000000000..849e3a6abe --- /dev/null +++ b/target/linux/coldfire/patches/058-mcfv4e_tlsnptl_elf_reloc.patch @@ -0,0 +1,43 @@ +From a64bac5fc75aa2872a8abe54a9f9aaa0fce31588 Mon Sep 17 00:00:00 2001 +From: Kurt Mahan <kmahan@freescale.com> +Date: Thu, 22 May 2008 09:50:31 -0600 +Subject: [PATCH] Add elf relocation types for TLS/NPTL. + +These relocations are from the draft TLS/NPTL ABI document v0.2 +by Joseph Myers of CodeSourcery. + +LTIBName: mcfv4e-tlsnptl-elf-reloc +Signed-off-by: Kurt Mahan <kmahan@freescale.com> +--- + include/asm-m68k/elf.h | 20 ++++++++++++++++++++ + 1 files changed, 20 insertions(+), 0 deletions(-) + +--- a/include/asm-m68k/elf.h ++++ b/include/asm-m68k/elf.h +@@ -34,6 +34,26 @@ + #define R_68K_GLOB_DAT 20 + #define R_68K_JMP_SLOT 21 + #define R_68K_RELATIVE 22 ++/* TLS static relocations */ ++#define R_68K_TLS_GD32 25 ++#define R_68K_TLS_GD16 26 ++#define R_68K_TLS_GD8 27 ++#define R_68K_TLS_LDM32 28 ++#define R_68K_TLS_LDM16 29 ++#define R_68K_TLS_LDM8 30 ++#define R_68K_TLS_LDO32 31 ++#define R_68K_TLS_LDO16 32 ++#define R_68K_TLS_LDO8 33 ++#define R_68K_TLS_IE32 34 ++#define R_68K_TLS_IE16 35 ++#define R_68K_TLS_IE8 36 ++#define R_68K_TLS_LE32 37 ++#define R_68K_TLS_LE16 38 ++#define R_68K_TLS_LE8 39 ++/* TLS dynamic relocations */ ++#define R_68K_TLS_DTPMOD32 40 ++#define R_68K_TLS_DTPREL32 41 ++#define R_68K_TLS_TPREL32 42 + + typedef unsigned long elf_greg_t; + |