Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F161528559
D1817.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D1817.diff
View Options
Index: head/contrib/elftoolchain/libdwarf/libdwarf.h
===================================================================
--- head/contrib/elftoolchain/libdwarf/libdwarf.h
+++ head/contrib/elftoolchain/libdwarf/libdwarf.h
@@ -439,6 +439,7 @@
DW_ISA_SPARC,
DW_ISA_X86,
DW_ISA_X86_64,
+ DW_ISA_AARCH64,
DW_ISA_MAX
};
Index: head/contrib/elftoolchain/libdwarf/libdwarf_reloc.c
===================================================================
--- head/contrib/elftoolchain/libdwarf/libdwarf_reloc.c
+++ head/contrib/elftoolchain/libdwarf/libdwarf_reloc.c
@@ -35,6 +35,8 @@
assert(dbg != NULL);
switch (dbg->dbgp_isa) {
+ case DW_ISA_AARCH64:
+ return (is64 ? R_AARCH64_ABS64 : R_AARCH64_ABS32);
case DW_ISA_X86:
return (R_386_32);
case DW_ISA_X86_64:
@@ -62,6 +64,12 @@
switch (dbg->dbg_machine) {
case EM_NONE:
break;
+ case EM_AARCH64:
+ if (rel_type == R_AARCH64_ABS32)
+ return (4);
+ else if (rel_type == R_AARCH64_ABS64)
+ return (8);
+ break;
case EM_ARM:
if (rel_type == R_ARM_ABS32)
return (4);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Jul 5, 2:07 PM (12 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34712525
Default Alt Text
D1817.diff (1 KB)
Attached To
Mode
D1817: libdwarf: Add aarch64 relocation support
Attached
Detach File
Event Timeline
Log In to Comment