Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Dec 2017 03:15:20 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r326957 - head/contrib/llvm/tools/lld/ELF
Message-ID:  <201712190315.vBJ3FKWo065935@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: emaste
Date: Tue Dec 19 03:15:20 2017
New Revision: 326957
URL: https://svnweb.freebsd.org/changeset/base/326957

Log:
  lld: Don't write preemptible symbol values to the .got.
  
  It is not necessary and matches what bfd and gold do.
  
  This was a regression from [LLVM] r315658.
  
  Obtained from:	LLVM r321023 by Rafael EspĂ­ndola

Modified:
  head/contrib/llvm/tools/lld/ELF/Relocations.cpp

Modified: head/contrib/llvm/tools/lld/ELF/Relocations.cpp
==============================================================================
--- head/contrib/llvm/tools/lld/ELF/Relocations.cpp	Tue Dec 19 02:49:11 2017	(r326956)
+++ head/contrib/llvm/tools/lld/ELF/Relocations.cpp	Tue Dec 19 03:15:20 2017	(r326957)
@@ -812,7 +812,7 @@ static void addGotEntry(SymbolBody &Sym, bool Preempti
     //
     // This is ugly -- the difference between REL and RELA should be
     // handled in a better way. It's a TODO.
-    if (!Config->IsRela)
+    if (!Config->IsRela && !Preemptible)
       InX::Got->Relocations.push_back({R_ABS, Target->GotRel, Off, 0, &Sym});
   }
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201712190315.vBJ3FKWo065935>