Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Unified Diff: src/IceELFObjectWriter.cpp

Issue 1651163002: Subzero. Enables moar complex relocation offsets. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: make format Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/IceDefs.h ('k') | src/IceGlobalContext.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceELFObjectWriter.cpp
diff --git a/src/IceELFObjectWriter.cpp b/src/IceELFObjectWriter.cpp
index b5c5fc766b21f67c777dc2b41bf9df6ee18d2e79..b701f2af123aff39f926b604646ad5d25e62fc60 100644
--- a/src/IceELFObjectWriter.cpp
+++ b/src/IceELFObjectWriter.cpp
@@ -256,15 +256,6 @@ void ELFObjectWriter::writeFunctionCode(const IceString &FuncName,
SymTab->createDefinedSym(FuncName, SymbolType, SymbolBinding, Section,
OffsetInSection, SymbolSize);
StrTab->add(FuncName);
- for (const auto &InternalReloc : Asm->getInternalRelocations()) {
- const IceString &RelocName = InternalReloc.first;
- constexpr uint8_t RelocSymbolType = STT_NOTYPE;
- constexpr uint8_t RelocSymbolBinding = STB_LOCAL;
- const SizeT RelocOffsetInSection = OffsetInSection + InternalReloc.second;
- SymTab->createDefinedSym(RelocName, RelocSymbolType, RelocSymbolBinding,
- Section, RelocOffsetInSection, SymbolSize);
- StrTab->add(RelocName);
- }
// Copy the fixup information from per-function Assembler memory to the
// object writer's memory, for writing later.
« no previous file with comments | « src/IceDefs.h ('k') | src/IceGlobalContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698