Revert "Add option to generate compressed backtrace info."
This reverts commit 5fdcc3c931b70204fd8c491afa66f57f8428490f.
Change-Id: I9c1f5aad6933a46af6717e3a90a51f76111f9c8a
diff --git a/compiler/elf_builder.h b/compiler/elf_builder.h
index 3d24d19..46484b1 100644
--- a/compiler/elf_builder.h
+++ b/compiler/elf_builder.h
@@ -165,15 +165,10 @@
}
}
- // Write this section as "NOBITS" section. (used for the .bss section)
- // This means that the ELF file does not contain the initial data for this section
- // and it will be zero-initialized when the ELF file is loaded in the running program.
- void WriteNoBitsSection(Elf_Word size) {
- DCHECK_NE(header_.sh_flags & SHF_ALLOC, 0u);
- Start();
- header_.sh_type = SHT_NOBITS;
+ // Set desired allocation size for .bss section.
+ void SetSize(Elf_Word size) {
+ CHECK_EQ(header_.sh_type, (Elf_Word)SHT_NOBITS);
header_.sh_size = size;
- End();
}
// This function always succeeds to simplify code.
@@ -351,12 +346,6 @@
other_sections_.push_back(std::move(s));
}
- // Set where the next section will be allocated in the virtual address space.
- void SetVirtualAddress(Elf_Addr address) {
- DCHECK_GE(address, virtual_address_);
- virtual_address_ = address;
- }
-
void Start() {
// Reserve space for ELF header and program headers.
// We do not know the number of headers until later, so