Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F142035906
D38246.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
845 B
Referenced Files
None
Subscribers
None
D38246.diff
View Options
diff --git a/stand/common/reloc_elf.c b/stand/common/reloc_elf.c
--- a/stand/common/reloc_elf.c
+++ b/stand/common/reloc_elf.c
@@ -56,7 +56,10 @@
__ELF_WORD_SIZE == 64
Elf64_Addr *where, val;
Elf_Addr addend, addr;
- Elf_Size rtype, symidx;
+ Elf_Size rtype;
+#if defined(__amd64__) || defined(__i386__)
+ Elf_Size symidx;
+#endif
const Elf_Rel *rel;
const Elf_Rela *rela;
@@ -67,7 +70,9 @@
dataaddr);
addend = 0;
rtype = ELF_R_TYPE(rel->r_info);
+#if defined(__amd64__) || defined(__i386__)
symidx = ELF_R_SYM(rel->r_info);
+#endif
addend = 0;
break;
case ELF_RELOC_RELA:
@@ -76,7 +81,9 @@
dataaddr);
addend = rela->r_addend;
rtype = ELF_R_TYPE(rela->r_info);
+#if defined(__amd64__) || defined(__i386__)
symidx = ELF_R_SYM(rela->r_info);
+#endif
break;
default:
return (EINVAL);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jan 16, 6:21 AM (17 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27658918
Default Alt Text
D38246.diff (845 B)
Attached To
Mode
D38246: stand: only compute symidx on x86
Attached
Detach File
Event Timeline
Log In to Comment