aboutsummaryrefslogtreecommitdiffstats
path: root/src/ortho/mcode/elf_arch64.ads
diff options
context:
space:
mode:
authorTristan Gingold <gingold@adacore.com>2016-01-05 06:44:53 +0100
committerTristan Gingold <gingold@adacore.com>2016-01-06 18:38:37 +0100
commitb5797a5cef6d25817da7998f6263afa53e196d25 (patch)
treead3b67a93d16e8a06fab2d7a8c4d8993ff101b8a /src/ortho/mcode/elf_arch64.ads
parent955e964b024de556c4c0db8fd745c6abdb8052fe (diff)
downloadghdl-b5797a5cef6d25817da7998f6263afa53e196d25.tar.gz
ghdl-b5797a5cef6d25817da7998f6263afa53e196d25.tar.bz2
ghdl-b5797a5cef6d25817da7998f6263afa53e196d25.zip
mcode: add support for x86-64
Diffstat (limited to 'src/ortho/mcode/elf_arch64.ads')
-rw-r--r--src/ortho/mcode/elf_arch64.ads10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/ortho/mcode/elf_arch64.ads b/src/ortho/mcode/elf_arch64.ads
index 504cd66b3..481b341f7 100644
--- a/src/ortho/mcode/elf_arch64.ads
+++ b/src/ortho/mcode/elf_arch64.ads
@@ -28,10 +28,20 @@ package Elf_Arch64 is
subtype Elf_Off is Elf64_Off;
subtype Elf_Size is Elf64_Xword;
+ subtype Elf_Addr is Elf64_Addr;
Elf_Ehdr_Size : constant Natural := Elf64_Ehdr_Size;
Elf_Shdr_Size : constant Natural := Elf64_Shdr_Size;
Elf_Phdr_Size : constant Natural := Elf64_Phdr_Size;
Elf_Sym_Size : constant Natural := Elf64_Sym_Size;
+ Elf_Rel_Size : constant Natural := Elf64_Rel_Size;
+ Elf_Rela_Size : constant Natural := Elf64_Rela_Size;
Elf_Arch_Class : constant Elf_Uchar := ELFCLASS64;
+
+ function Elf_R_Sym (I : Elf64_Xword) return Elf_Word
+ renames Elf64_R_Sym;
+ function Elf_R_Type (I : Elf64_Xword) return Elf_Word
+ renames Elf64_R_Type;
+ function Elf_R_Info (S, T : Elf_Word) return Elf64_Xword
+ renames Elf64_R_Info;
end Elf_Arch64;