diff options
author | Magnus Lång <[email protected]> | 2016-05-10 17:22:25 +0200 |
---|---|---|
committer | Magnus Lång <[email protected]> | 2016-05-11 13:19:46 +0200 |
commit | 0f489445070cf65d96db7938f80ad118921c1f6a (patch) | |
tree | eb31f67e5d9506ab000c3fd547c8f18aa92fadc4 /lib/hipe/llvm/elf64_format.hrl | |
parent | 3dc060d7b6e0f2ea55e6649b23a47d226874b9d4 (diff) | |
download | otp-0f489445070cf65d96db7938f80ad118921c1f6a.tar.gz otp-0f489445070cf65d96db7938f80ad118921c1f6a.tar.bz2 otp-0f489445070cf65d96db7938f80ad118921c1f6a.zip |
hipe: Extract some records into elf_format.hrl
This allows for much more robust interpretation of relocations, symbols
and sections in hipe_llvm_main, without the clunkiness of an abstract
interface between two internal modules that belong to the same subsystem
anyway.
Diffstat (limited to 'lib/hipe/llvm/elf64_format.hrl')
-rw-r--r-- | lib/hipe/llvm/elf64_format.hrl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/hipe/llvm/elf64_format.hrl b/lib/hipe/llvm/elf64_format.hrl index 794746ffdc..0136e7f381 100644 --- a/lib/hipe/llvm/elf64_format.hrl +++ b/lib/hipe/llvm/elf64_format.hrl @@ -56,3 +56,9 @@ -define(P_FILESZ_OFFSET, (?P_PVADDR_OFFSET + ?P_PVADDR_SIZE) ). -define(P_MEMSZ_OFFSET, (?P_FILESZ_OFFSET + ?P_FILESZ_SIZE) ). -define(P_ALIGN_OFFSET, (?P_MEMSZ_OFFSET + ?P_MEMSZ_SIZE) ). + +%%------------------------------------------------------------------------------ +%% Exported record and type declarations for 'elf_format' module +%%------------------------------------------------------------------------------ + +-type reloc_type() :: '64' | 'pc32' | '32'. |