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 c3682eb commit da968fbCopy full SHA for da968fb
src/patchelf.cc
@@ -319,14 +319,17 @@ unsigned int ElfFile<ElfFileParamNames>::getPageSize() const
319
// current list is extracted from GNU gold's source code (abi_pagesize).
320
switch (rdi(hdr()->e_machine)) {
321
case EM_IA_64:
322
- case EM_SPARC:
323
case EM_MIPS:
324
case EM_PPC:
325
case EM_PPC64:
326
case EM_AARCH64:
327
case EM_TILEGX:
328
case EM_LOONGARCH:
329
return 0x10000;
+ case EM_SPARC: // This should be sparc 32-bit. According to the linux
330
+ // kernel 4KB should be also fine, but it seems that solaris is doing 8KB
331
+ case EM_SPARCV9: /* SPARC64 support */
332
+ return 0x2000;
333
default:
334
return 0x1000;
335
}
0 commit comments