summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2016-04-01 17:11:42 +0000
committerRui Ueyama <ruiu@google.com>2016-04-01 17:11:42 +0000
commita63baf176f119d5db2c7e5195042ff7fae721f72 (patch)
treec140de8b9d565f0b6364b5c8070b919e3df20da3
parent1992ac75dbb41bae2c13fe94a7774dd89d7f8860 (diff)
downloadbcm5719-llvm-a63baf176f119d5db2c7e5195042ff7fae721f72.tar.gz
bcm5719-llvm-a63baf176f119d5db2c7e5195042ff7fae721f72.zip
Don't do extra work if -r is given.
fixAbsoluteSymbols fixes linker-created symbol addresses. Since we don't create such symbols for relocatable output, we don't need to call this function. llvm-svn: 265154
-rw-r--r--lld/ELF/Writer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp
index fa0bff2adc2..fd74766a4d4 100644
--- a/lld/ELF/Writer.cpp
+++ b/lld/ELF/Writer.cpp
@@ -225,8 +225,8 @@ template <class ELFT> void Writer<ELFT>::run() {
assignAddresses();
assignFileOffsets();
setPhdrs();
+ fixAbsoluteSymbols();
}
- fixAbsoluteSymbols();
if (!openFile())
return;
OpenPOWER on IntegriCloud