projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
82a3171
)
Index external symbols by symbol table instead of parent section, by Roman Divacky.
author
Benjamin Kramer
<benny.kra@googlemail.com>
Mon, 30 Aug 2010 11:59:29 +0000
(11:59 +0000)
committer
Benjamin Kramer
<benny.kra@googlemail.com>
Mon, 30 Aug 2010 11:59:29 +0000
(11:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112472
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/MC/ELFObjectWriter.cpp
patch
|
blob
|
history
diff --git
a/lib/MC/ELFObjectWriter.cpp
b/lib/MC/ELFObjectWriter.cpp
index 1704fb023d4650798056f57b7bfc25c92a26e13a..97604176b2295ecbed4faa3616f5992cb6c4e046 100644
(file)
--- a/
lib/MC/ELFObjectWriter.cpp
+++ b/
lib/MC/ELFObjectWriter.cpp
@@
-470,7
+470,7
@@
void ELFObjectWriterImpl::RecordRelocation(const MCAssembler &Asm,
MCFragment *F = SD.getFragment();
if (Base) {
- if (F && (!Symbol->isInSection() || SD.isCommon())) {
+ if (F && (!Symbol->isInSection() || SD.isCommon())
&& !SD.isExternal()
) {
Index = F->getParent()->getOrdinal() + LocalSymbolData.size() + 1;
Value += Layout.getSymbolAddress(&SD);
} else