aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/eglibc/eglibc-2.16/aarch64-glibc-v3-elf.patch
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <marcin.juszkiewicz@linaro.org>2012-11-21 17:08:13 +0100
committerMarcin Juszkiewicz <marcin.juszkiewicz@linaro.org>2012-11-29 12:00:36 +0100
commitaaa36e3ae6ff39682555ac6f21384b44d6f631e3 (patch)
tree452fb2ada1e041a29a16ab1f1ff6a4d379a4faef /meta/recipes-core/eglibc/eglibc-2.16/aarch64-glibc-v3-elf.patch
parent59a82c71c6a4f80065d41fd0560aa6e3ab2532e9 (diff)
downloadopenembedded-core-contrib-aaa36e3ae6ff39682555ac6f21384b44d6f631e3.tar.gz
eglibc: add AArch64 support
Both patches are from libc-alpha mailing list and got merged into eglibc/trunk. I can not use direct trunk commits because they already depend on other changes. Signed-off-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
Diffstat (limited to 'meta/recipes-core/eglibc/eglibc-2.16/aarch64-glibc-v3-elf.patch')
-rw-r--r--meta/recipes-core/eglibc/eglibc-2.16/aarch64-glibc-v3-elf.patch47
1 files changed, 47 insertions, 0 deletions
diff --git a/meta/recipes-core/eglibc/eglibc-2.16/aarch64-glibc-v3-elf.patch b/meta/recipes-core/eglibc/eglibc-2.16/aarch64-glibc-v3-elf.patch
new file mode 100644
index 0000000000..bad9feb12b
--- /dev/null
+++ b/meta/recipes-core/eglibc/eglibc-2.16/aarch64-glibc-v3-elf.patch
@@ -0,0 +1,47 @@
+import http://sourceware.org/ml/libc-alpha/2012-11/msg00240.html
+
+Upstream-Status: merged into trunk
+
+diff --git a/elf/elf.h b/elf/elf.h
+index 2524924..5a9b13f 100644
+--- a/elf/elf.h
++++ b/elf/elf.h
+@@ -249,6 +249,7 @@ typedef struct
+ #define EM_OPENRISC 92 /* OpenRISC 32-bit embedded processor */
+ #define EM_ARC_A5 93 /* ARC Cores Tangent-A5 */
+ #define EM_XTENSA 94 /* Tensilica Xtensa Architecture */
++#define EM_AARCH64 183 /* ARM AARCH64 */
+ #define EM_TILEPRO 188 /* Tilera TILEPro */
+ #define EM_TILEGX 191 /* Tilera TILE-Gx */
+ #define EM_NUM 192
+@@ -631,6 +632,9 @@ typedef struct
+ #define NT_S390_LAST_BREAK 0x306 /* s390 breaking event address */
+ #define NT_S390_SYSTEM_CALL 0x307 /* s390 system call restart data */
+ #define NT_ARM_VFP 0x400 /* ARM VFP/NEON registers */
++#define NT_ARM_TLS 0x401 /* ARM TLS register */
++#define NT_ARM_HW_BREAK 0x402 /* ARM hardware breakpoint registers */
++#define NT_ARM_HW_WATCH 0x403 /* ARM hardware watchpoint registers */
+
+ /* Legal values for the note segment descriptor types for object files. */
+
+@@ -2306,6 +2310,20 @@ typedef Elf32_Addr Elf32_Conflict;
+ #define SHT_ARM_ATTRIBUTES (SHT_LOPROC + 3) /* ARM attributes section. */
+
+
++/* AArch64 specific declarations. */
++
++#define R_AARCH64_NONE 0 /* No relocation. */
++#define R_AARCH64_ABS64 257 /* Direct 64 bit. */
++#define R_AARCH64_ABS32 258 /* Direct 32 bit. */
++#define R_AARCH64_COPY 1024 /* Copy symbol at runtime. */
++#define R_AARCH64_GLOB_DAT 1025 /* Create GOT entry. */
++#define R_AARCH64_JUMP_SLOT 1026 /* Create PLT entry. */
++#define R_AARCH64_RELATIVE 1027 /* Adjust by program base. */
++#define R_AARCH64_TLS_DTPMOD64 1028 /* Module number, 64 bit. */
++#define R_AARCH64_TLS_DTPREL64 1029 /* Module-relative offset, 64 bit. */
++#define R_AARCH64_TLS_TPREL64 1030 /* TP-relative offset, 64 bit. */
++#define R_AARCH64_TLSDESC 1031 /* TLS Descriptor. */
++
+ /* ARM relocs. */
+
+ #define R_ARM_NONE 0 /* No reloc */