Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F138013103
D20367.id57740.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
742 B
Referenced Files
None
Subscribers
None
D20367.id57740.diff
View Options
Index: contrib/elftoolchain/libdwarf/libdwarf_reloc.c
===================================================================
--- contrib/elftoolchain/libdwarf/libdwarf_reloc.c
+++ 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:
@@ -97,6 +97,12 @@
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)
return (4);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 29, 3:50 AM (17 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
26316551
Default Alt Text
D20367.id57740.diff (742 B)
Attached To
Mode
D20367: Add missing powerpc64 relocation support to libdwarf
Attached
Detach File
Event Timeline
Log In to Comment