[llvm-branch-commits] [llvm] b809557 - Revert "[Object][x86-64] Add support for `R_X86_64_GLOB_DAT` relocations. (#1…"

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Aug 13 18:58:48 PDT 2024


Author: Fangrui Song
Date: 2024-08-13T18:58:45-07:00
New Revision: b8095578f0a12653958aa64c0b071e34879a6991

URL: https://github.com/llvm/llvm-project/commit/b8095578f0a12653958aa64c0b071e34879a6991
DIFF: https://github.com/llvm/llvm-project/commit/b8095578f0a12653958aa64c0b071e34879a6991.diff

LOG: Revert "[Object][x86-64] Add support for `R_X86_64_GLOB_DAT` relocations. (#1…"

This reverts commit 5ae9faa538d100ab38f6f4f99c924de0e4270272.

Added: 
    

Modified: 
    llvm/lib/Object/RelocationResolver.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Object/RelocationResolver.cpp b/llvm/lib/Object/RelocationResolver.cpp
index 7f90834c3d2199..d9bb8f175ef83a 100644
--- a/llvm/lib/Object/RelocationResolver.cpp
+++ b/llvm/lib/Object/RelocationResolver.cpp
@@ -47,7 +47,6 @@ static bool supportsX86_64(uint64_t Type) {
   case ELF::R_X86_64_PC64:
   case ELF::R_X86_64_32:
   case ELF::R_X86_64_32S:
-  case ELF::R_X86_64_GLOB_DAT:
     return true;
   default:
     return false;
@@ -69,8 +68,6 @@ static uint64_t resolveX86_64(uint64_t Type, uint64_t Offset, uint64_t S,
   case ELF::R_X86_64_32:
   case ELF::R_X86_64_32S:
     return (S + Addend) & 0xFFFFFFFF;
-  case ELF::R_X86_64_GLOB_DAT:
-    return S;
   default:
     llvm_unreachable("Invalid relocation type");
   }


        


More information about the llvm-branch-commits mailing list