aboutsummaryrefslogtreecommitdiffstats
path: root/linker/linker_phdr.cpp
diff options
context:
space:
mode:
authorRobert Grosse <grosse@google.com>2014-10-15 14:32:19 -0700
committerRobert Grosse <grosse@google.com>2014-10-15 14:32:19 -0700
commit4544d9f9bf4b50bf677aa3a07403ac84391cfd42 (patch)
tree9eedd3d99a957e817d438a870537fafeab9c32b6 /linker/linker_phdr.cpp
parent97df16ba5c2911e06d1211781a5724706abd227b (diff)
downloadandroid_bionic-4544d9f9bf4b50bf677aa3a07403ac84391cfd42.tar.gz
android_bionic-4544d9f9bf4b50bf677aa3a07403ac84391cfd42.tar.bz2
android_bionic-4544d9f9bf4b50bf677aa3a07403ac84391cfd42.zip
Fix misleading comment.
Change-Id: I9e2aa6c2ba938c8f8d7c74eba32d313c866c77b2
Diffstat (limited to 'linker/linker_phdr.cpp')
-rw-r--r--linker/linker_phdr.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/linker/linker_phdr.cpp b/linker/linker_phdr.cpp
index e0d6d0e78..6856405de 100644
--- a/linker/linker_phdr.cpp
+++ b/linker/linker_phdr.cpp
@@ -728,9 +728,9 @@ void phdr_table_get_dynamic_section(const ElfW(Phdr)* phdr_table, size_t phdr_co
}
}
-// Returns the address of the program header table as it appears in the loaded
-// segments in memory. This is in contrast with 'phdr_table_' which
-// is temporary and will be released before the library is relocated.
+// Sets loaded_phdr_ to the address of the program header table as it appears
+// in the loaded segments in memory. This is in contrast with phdr_table_,
+// which is temporary and will be released before the library is relocated.
bool ElfReader::FindPhdr() {
const ElfW(Phdr)* phdr_limit = phdr_table_ + phdr_num_;