diff options
author | Gabe Black <gabeblack@google.com> | 2019-09-28 19:26:02 -0700 |
---|---|---|
committer | Gabe Black <gabeblack@google.com> | 2019-10-09 00:06:25 +0000 |
commit | 3c65c44a1ae87607337a56ca45b6b305778d52ff (patch) | |
tree | 99c47c7bf5c9a7b14b7b87cb31633b9370b2d7d6 /src/base/loader/elf_object.hh | |
parent | 93595f4a2a069d1b10c6ff63a5f5273b3a695549 (diff) | |
download | gem5-3c65c44a1ae87607337a56ca45b6b305778d52ff.tar.xz |
base: Rename Section to Segment, and some of its members.
ELF is, in my opinion, the most important object file format gem5
currently understands, and in ELF terminolgy the blob of data that
needs to be loaded into memory to a particular location is called a
segment. A section is a software level view of what's in a region
of memory, and a single segment may contain multiple sections which
happen to follow each other in memory.
Change-Id: Ib810c5050723d5a96bd7550515b08ac695fb1b02
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/21462
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Maintainer: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'src/base/loader/elf_object.hh')
-rw-r--r-- | src/base/loader/elf_object.hh | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/base/loader/elf_object.hh b/src/base/loader/elf_object.hh index 9585684d4..244b9fc3f 100644 --- a/src/base/loader/elf_object.hh +++ b/src/base/loader/elf_object.hh @@ -51,9 +51,6 @@ class ElfObject : public ObjectFile { protected: - // The global definition of a gem5 "Section" is closest to ELF's segments. - typedef ObjectFile::Section Segment; - // These values are provided to a linux process by the kernel, so we // need to keep them around. Addr _programHeaderTable; @@ -94,7 +91,7 @@ class ElfObject : public ObjectFile public: virtual ~ElfObject() {} - bool loadSections(const PortProxy& mem_proxy, Addr addr_mask = maxAddr, + bool loadSegments(const PortProxy& mem_proxy, Addr addr_mask = maxAddr, Addr offset = 0) override; virtual bool loadAllSymbols(SymbolTable *symtab, Addr base = 0, |