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

Unified Diff: src/IceELFObjectWriter.cpp

Issue 2471883005: [SubZero] Generate MIPS.abiflags section (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Addressed review comments Created 4 years, 1 month 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/IceELFObjectWriter.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 2b32e23b58908cc13673d85d9080f9496e241aef..4663b71773ad7bdb2596aa3f2c36603e3b50c6ce 100644
--- a/src/IceELFObjectWriter.cpp
+++ b/src/IceELFObjectWriter.cpp
@@ -301,6 +301,21 @@ void partitionGlobalsBySection(const VariableDeclarationList &Vars,
} // end of anonymous namespace
+void ELFObjectWriter::writeTargetRODataSection(const std::string &Name,
+ Elf64_Word ShType,
+ Elf64_Xword ShFlags,
+ Elf64_Xword ShAddralign,
+ Elf64_Xword ShEntsize,
+ const llvm::StringRef &SecData) {
+ TimerMarker Timer(TimerStack::TT_writeELF, &Ctx);
+ assert(!SectionNumbersAssigned);
+ ELFDataSection *Section = createSection<ELFDataSection>(
+ Name, ShType, ShFlags, ShAddralign, ShEntsize);
+ Section->setFileOffset(alignFileOffset(ShAddralign));
+ Section->appendData(Str, llvm::StringRef(SecData.data(), SecData.size()));
+ RODataSections.push_back(Section);
+}
+
void ELFObjectWriter::writeDataSection(const VariableDeclarationList &Vars,
FixupKind RelocationKind,
const std::string &SectionSuffix,
« no previous file with comments | « src/IceELFObjectWriter.h ('k') | src/IceGlobalContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698