Commit a601cc5f by Jan Voung

Try to fix mismatch between writeELFHeaderInternal def and decl.

BUG=build failure R=kschimpf@google.com Review URL: https://codereview.chromium.org/773853005
parent ae35f196
......@@ -233,7 +233,7 @@ void ELFObjectWriter::writeDataInitializer(const IceString &VarName,
void ELFObjectWriter::writeInitialELFHeader() {
assert(!SectionNumbersAssigned);
const size_t DummySHOffset = 0;
const Elf64_Off DummySHOffset = 0;
const SizeT DummySHStrIndex = 0;
const SizeT DummyNumSections = 0;
if (isELF64(Ctx.getTargetArch())) {
......@@ -246,7 +246,7 @@ void ELFObjectWriter::writeInitialELFHeader() {
}
template <bool IsELF64>
void ELFObjectWriter::writeELFHeaderInternal(size_t SectionHeaderOffset,
void ELFObjectWriter::writeELFHeaderInternal(Elf64_Off SectionHeaderOffset,
SizeT SectHeaderStrIndex,
SizeT NumSections) {
// Write the e_ident: magic number, class, etc.
......
......@@ -116,7 +116,7 @@ private:
// Write the ELF file header with the given information about sections.
template <bool IsELF64>
void writeELFHeaderInternal(uint64_t SectionHeaderOffset,
void writeELFHeaderInternal(Elf64_Off SectionHeaderOffset,
SizeT SectHeaderStrIndex, SizeT NumSections);
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment