Index: trunk/src/courgette/disassembler_elf_32.h |
=================================================================== |
--- trunk/src/courgette/disassembler_elf_32.h (revision 207822) |
+++ trunk/src/courgette/disassembler_elf_32.h (working copy) |
@@ -47,7 +47,7 @@ |
// Misc Section Helpers |
- Elf32_Half SectionHeaderCount() const { |
+ const Elf32_Half SectionHeaderCount() const { |
return section_header_table_size_; |
} |
@@ -60,13 +60,13 @@ |
return OffsetToPointer(SectionHeader(id)->sh_offset); |
} |
- Elf32_Word SectionBodySize(int id) const { |
+ const Elf32_Word SectionBodySize(int id) const { |
return SectionHeader(id)->sh_size; |
} |
// Misc Segment Helpers |
- Elf32_Half ProgramSegmentHeaderCount() const { |
+ const Elf32_Half ProgramSegmentHeaderCount() const { |
return program_header_table_size_; |
} |
@@ -76,22 +76,22 @@ |
} |
// The virtual memory address at which this program segment will be loaded |
- Elf32_Addr ProgramSegmentMemoryBegin(int id) const { |
+ const Elf32_Addr ProgramSegmentMemoryBegin(int id) const { |
return ProgramSegmentHeader(id)->p_vaddr; |
} |
// The number of virtual memory bytes for this program segment |
- Elf32_Word ProgramSegmentMemorySize(int id) const { |
+ const Elf32_Word ProgramSegmentMemorySize(int id) const { |
return ProgramSegmentHeader(id)->p_memsz; |
} |
// Pointer into the source file for this program segment |
- Elf32_Addr ProgramSegmentFileOffset(int id) const { |
+ const Elf32_Addr ProgramSegmentFileOffset(int id) const { |
return ProgramSegmentHeader(id)->p_offset; |
} |
// Number of file bytes for this program segment. Is <= ProgramMemorySize. |
- Elf32_Word ProgramSegmentFileSize(int id) const { |
+ const Elf32_Word ProgramSegmentFileSize(int id) const { |
return ProgramSegmentHeader(id)->p_filesz; |
} |