mirror of
https://github.com/opnsense/src.git
synced 2026-02-18 18:20:26 -05:00
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
This commit is contained in:
parent
e054cac74a
commit
a5d5fd9ffd
1 changed files with 1 additions and 1 deletions
|
|
@ -812,7 +812,7 @@ static void addGotEntry(SymbolBody &Sym, bool Preemptible) {
|
|||
//
|
||||
// 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});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue