* Patch for Bug 3715
@ 2021-11-03 7:56 Михаил
0 siblings, 0 replies; only message in thread
From: Михаил @ 2021-11-03 7:56 UTC (permalink / raw)
To: devel
[-- Attachment #1.1: Type: text/plain, Size: 115 bytes --]
Patch for Bug 3715 - Some tools fail to compile for NOOPT with clang-13.
--
Михаил Кричанов
[-- Attachment #1.2: Type: text/html, Size: 439 bytes --]
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0003-Fix-for-NOOPT-CLANG38-compilation-with-clang-13.patch --]
[-- Type: text/x-diff; name="0003-Fix-for-NOOPT-CLANG38-compilation-with-clang-13.patch", Size: 1222 bytes --]
From 76be193a80051662fe6a83307285e5fdde71be6f Mon Sep 17 00:00:00 2001
From: ocbuild <ocbuild@acidanthera.local>
Date: Fri, 22 Oct 2021 16:20:16 +0300
Subject: [PATCH] Fix for NOOPT CLANG38 compilation with clang-13.
---
BaseTools/Source/C/GenFw/Elf32Convert.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/BaseTools/Source/C/GenFw/Elf32Convert.c b/BaseTools/Source/C/GenFw/Elf32Convert.c
index d917a44..b785998 100644
--- a/BaseTools/Source/C/GenFw/Elf32Convert.c
+++ b/BaseTools/Source/C/GenFw/Elf32Convert.c
@@ -779,6 +779,7 @@ WriteSections32 (
*(UINT32 *)Targ = *(UINT32 *)Targ - SymShdr->sh_addr
+ mCoffSectionsOffset[Sym->st_shndx];
break;
+ case R_386_PLT32:
case R_386_PC32:
//
// Relative relocation: Symbol - Ip + Addend
@@ -900,6 +901,7 @@ WriteRelocations32 (
if (mEhdr->e_machine == EM_386) {
switch (ELF_R_TYPE(Rel->r_info)) {
case R_386_NONE:
+ case R_386_PLT32:
case R_386_PC32:
//
// No fixup entry required.
@@ -1168,5 +1170,3 @@ CleanUp32 (
free (mCoffSectionsOffset);
}
}
-
-
--
2.20.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2021-11-03 7:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-03 7:56 Patch for Bug 3715 Михаил
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox