[Scummvm-git-logs] scummvm master -> 2a7241a97cb0cde8d130ca8a556f0ecf875de2d4
lephilousophe
noreply at scummvm.org
Sat Feb 24 19:50:11 UTC 2024
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
2a7241a97c PLUGINS: Implement NONE relocations
Commit: 2a7241a97cb0cde8d130ca8a556f0ecf875de2d4
https://github.com/scummvm/scummvm/commit/2a7241a97cb0cde8d130ca8a556f0ecf875de2d4
Author: Le Philousophe (lephilousophe at users.noreply.github.com)
Date: 2024-02-24T20:48:21+01:00
Commit Message:
PLUGINS: Implement NONE relocations
ARM emit them in some cases and add it to MIPS for completeness
Fixes: #14905
Changed paths:
backends/plugins/elf/arm-loader.cpp
backends/plugins/elf/mips-loader.cpp
diff --git a/backends/plugins/elf/arm-loader.cpp b/backends/plugins/elf/arm-loader.cpp
index 6bc61fa92bb..52c96a1e824 100644
--- a/backends/plugins/elf/arm-loader.cpp
+++ b/backends/plugins/elf/arm-loader.cpp
@@ -63,6 +63,9 @@ bool ARMDLObject::relocate(Elf32_Off offset, Elf32_Word size, byte *relSegment)
// Act differently based on the type of relocation
switch (REL_TYPE(rel[i].r_info)) {
+ case R_ARM_NONE:
+// debug(8, "elfloader: R_ARM_NONE: No relocation.");
+ break;
case R_ARM_ABS32:
case R_ARM_TARGET1:
if (sym->st_shndx < SHN_LOPROC) { // Only shift for plugin section.
diff --git a/backends/plugins/elf/mips-loader.cpp b/backends/plugins/elf/mips-loader.cpp
index 3d207d8d0cc..f88f16240df 100644
--- a/backends/plugins/elf/mips-loader.cpp
+++ b/backends/plugins/elf/mips-loader.cpp
@@ -77,6 +77,8 @@ bool MIPSDLObject::relocate(Elf32_Off offset, Elf32_Word size, byte *relSegment)
// Act differently based on the type of relocation
switch (REL_TYPE(rel[i].r_info)) {
+ case R_MIPS_NONE:
+ break; // No relocation
case R_MIPS_HI16: // Absolute addressing.
if (sym->st_shndx < SHN_LOPROC && // Only shift for plugin section (ie. has a real section index)
firstHi16 < 0) { // Only process first in block of HI16s
More information about the Scummvm-git-logs
mailing list