forked from eliben/pyelftools
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
initial support for aarch64 little endian
See also: https://static.docs.arm.com/ihi0056/b/IHI0056B_aaelf64.pdf for relocation types and https://developer.arm.com/docs/ihi0057/c/dwarf-for-the-arm-64-bit-architecture-aarch64-abi-2018q4 for DWARF register names. Issue eliben#317 Link: ClangBuiltLinux/frame-larger-than#4 Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
- Loading branch information
1 parent
1ed78f5
commit 4a842dc
Showing
4 changed files
with
40 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* This source was compiled for aarch64 (little endian). | ||
aarch64-linux-gnu-gcc -c -o aarch64-relocs-le.o.elf aarch64-relocs.c -g | ||
*/ | ||
|
||
extern struct { | ||
int i, j; | ||
} data; | ||
|
||
extern int bar (void); | ||
|
||
int | ||
foo (int a) | ||
{ | ||
data.i += a; | ||
data.j -= bar(); | ||
} |