aboutsummaryrefslogtreecommitdiff
path: root/src/common/linux/synth_elf.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/linux/synth_elf.cc')
-rw-r--r--src/common/linux/synth_elf.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/common/linux/synth_elf.cc b/src/common/linux/synth_elf.cc
index b978550f..98e81dab 100644
--- a/src/common/linux/synth_elf.cc
+++ b/src/common/linux/synth_elf.cc
@@ -213,8 +213,10 @@ void ELF::Finish() {
SymbolTable::SymbolTable(Endianness endianness,
size_t addr_size,
StringTable& table) : Section(endianness),
- addr_size_(addr_size),
table_(table) {
+#ifndef NDEBUG
+ addr_size_ = addr_size;
+#endif
assert(addr_size_ == 4 || addr_size_ == 8);
}