projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd5c8d1
)
[ELF] Delete a redundant R_HINT check from isStaticLinkTimeConstant(). NFC
author
Fangrui Song
<maskray@google.com>
Mon, 23 Dec 2019 00:55:38 +0000
(16:55 -0800)
committer
Fangrui Song
<maskray@google.com>
Mon, 23 Dec 2019 00:58:22 +0000
(16:58 -0800)
scanReloc() returns when it sees an R_HINT.
lld/ELF/Relocations.cpp
patch
|
blob
|
history
diff --git
a/lld/ELF/Relocations.cpp
b/lld/ELF/Relocations.cpp
index
78bafe5
..
c5aa801
100644
(file)
--- a/
lld/ELF/Relocations.cpp
+++ b/
lld/ELF/Relocations.cpp
@@
-375,8
+375,8
@@
static bool isStaticLinkTimeConstant(RelExpr e, RelType type, const Symbol &sym,
R_AARCH64_GOT_PAGE_PC, R_GOT_PC, R_GOTONLY_PC, R_GOTPLTONLY_PC,
R_PLT_PC, R_TLSGD_GOT, R_TLSGD_GOTPLT, R_TLSGD_PC, R_PPC32_PLTREL,
R_PPC64_CALL_PLT, R_PPC64_RELAX_TOC, R_RISCV_ADD, R_TLSDESC_CALL,
- R_TLSDESC_PC, R_AARCH64_TLSDESC_PAGE, R_
HINT, R_TLSLD_HINT,
-
R_TLSIE_HINT>(
e))
+ R_TLSDESC_PC, R_AARCH64_TLSDESC_PAGE, R_
TLSLD_HINT, R_TLSIE_HINT>(
+ e))
return true;
// These never do, except if the entire file is position dependent or if