aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/common')
-rw-r--r--src/common/linux/dump_symbols.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/linux/dump_symbols.cc b/src/common/linux/dump_symbols.cc
index 65e577c8..887880d2 100644
--- a/src/common/linux/dump_symbols.cc
+++ b/src/common/linux/dump_symbols.cc
@@ -140,7 +140,7 @@ static void FixAddress(void *obj_base) {
sections[i].sh_offset += base;
}
-// Find the prefered loading address of the binary.
+// Find the preferred loading address of the binary.
static ElfW(Addr) GetLoadingAddress(const ElfW(Phdr) *program_headers,
int nheader) {
for (int i = 0; i < nheader; ++i) {
@@ -466,7 +466,7 @@ class LoadSymbolsInfo {
}
}
- // We expect the ELF file and linked debug file to have the same prefered
+ // We expect the ELF file and linked debug file to have the same preferred
// loading address.
void set_loading_addr(ElfW(Addr) addr, const std::string &filename) {
if (!has_loading_addr_) {
@@ -503,7 +503,7 @@ class LoadSymbolsInfo {
bool has_loading_addr_; // Indicate if LOADING_ADDR_ is valid.
- ElfW(Addr) loading_addr_; // Saves the prefered loading address from the
+ ElfW(Addr) loading_addr_; // Saves the preferred loading address from the
// first call to LoadSymbols().
std::string loaded_file_; // Name of the file loaded from the first call to