Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F152469874
D20367.id58019.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
756 B
Referenced Files
None
Subscribers
None
D20367.id58019.diff
View Options
Index: head/contrib/elftoolchain/libdwarf/libdwarf_reloc.c
===================================================================
--- head/contrib/elftoolchain/libdwarf/libdwarf_reloc.c
+++ head/contrib/elftoolchain/libdwarf/libdwarf_reloc.c
@@ -44,7 +44,7 @@
case DW_ISA_SPARC:
return (is64 ? R_SPARC_UA64 : R_SPARC_UA32);
case DW_ISA_PPC:
- return (R_PPC_ADDR32);
+ return (is64 ? R_PPC64_ADDR64 : R_PPC_ADDR32);
case DW_ISA_ARM:
return (R_ARM_ABS32);
case DW_ISA_MIPS:
@@ -96,6 +96,12 @@
case EM_PPC:
if (rel_type == R_PPC_ADDR32)
return (4);
+ break;
+ case EM_PPC64:
+ if (rel_type == R_PPC_ADDR32)
+ return (4);
+ else if (rel_type == R_PPC64_ADDR64)
+ return (8);
break;
case EM_MIPS:
if (rel_type == R_MIPS_32)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Apr 16, 4:05 AM (4 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31577269
Default Alt Text
D20367.id58019.diff (756 B)
Attached To
Mode
D20367: Add missing powerpc64 relocation support to libdwarf
Attached
Detach File
Event Timeline
Log In to Comment