We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80335e1 commit 7f431b9Copy full SHA for 7f431b9
src/patchelf.cc
@@ -309,14 +309,17 @@ unsigned int ElfFile<ElfFileParamNames>::getPageSize() const noexcept
309
// current list is extracted from GNU gold's source code (abi_pagesize).
310
switch (rdi(hdr()->e_machine)) {
311
case EM_IA_64:
312
- case EM_SPARC:
313
case EM_MIPS:
314
case EM_PPC:
315
case EM_PPC64:
316
case EM_AARCH64:
317
case EM_TILEGX:
318
case EM_LOONGARCH:
319
return 0x10000;
+ case EM_SPARC: // This should be sparc 32-bit. According to the linux
320
+ // kernel 4KB should be also fine, but it seems that solaris is doing 8KB
321
+ case EM_SPARCV9: /* SPARC64 support */
322
+ return 0x2000;
323
default:
324
return 0x1000;
325
}
0 commit comments