Add tls support to gold aarch64 backend.
[deliverable/binutils-gdb.git] / elfcpp / aarch64.h
index 52ac3eaca9af243c59e76e1843ef86fe2190e567..55a5dfa7bfb034683edd41380ded5b48c793316b 100644 (file)
@@ -171,8 +171,12 @@ enum
   R_AARCH64_GLOB_DAT = 1025,           // S + A
   R_AARCH64_JUMP_SLOT = 1026,          // S + A
   R_AARCH64_RELATIVE = 1027,           // Delta(S) + A
-  R_AARCH64_TLS_DTPREL64 = 1028,       // DTPREL(S+A)
-  R_AARCH64_TLS_DTPMOD64 = 1029,       // LDM(S)
+  // Note (shenhan): the following 2 relocs are different from elf spec from
+  // arm.  In elf docs, TLS_DTPMOD64 is defined as 1029, TLS_DTPREL64 1028.
+  // While actually the bfd linker (and the dynamic linker) treates TLS_DTPMOD64
+  // as 1028, TLS_DTPREL64 1029.  See binutils-gdb/include/elf/aarch64.h.
+  R_AARCH64_TLS_DTPMOD64 = 1028,       // LDM(S)
+  R_AARCH64_TLS_DTPREL64 = 1029,       // DTPREL(S+A)
   R_AARCH64_TLS_TPREL64 = 1030,                // TPREL(S+A)
   R_AARCH64_TLSDESC = 1031,            // TLSDESC(S+A)
   R_AARCH64_IRELATIVE = 1032,          // Indirect(Delta(S) + A)
This page took 0.025295 seconds and 4 git commands to generate.