summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVivek Das Mohapatra <vivek@collabora.co.uk>2017-09-12 13:10:51 (GMT)
committerVivek Das Mohapatra <vivek@collabora.co.uk>2017-09-12 13:10:51 (GMT)
commit7b19760b1064c7ef6a4c3611edb2285a8f446441 (patch)
tree35f873aa2ba0cca1354807f5f452f5722133afcb
parentd835bea914173d0c50765af974a1d237678f365a (diff)
downloadlibcapsule-7b19760b1064c7ef6a4c3611edb2285a8f446441.tar.gz
libcapsule-7b19760b1064c7ef6a4c3611edb2285a8f446441.tar.xz
Thinko in comment - PLT vs GOT
-rw-r--r--capsule/capsule-relocate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/capsule/capsule-relocate.c b/capsule/capsule-relocate.c
index f611674..4f6cc98 100644
--- a/capsule/capsule-relocate.c
+++ b/capsule/capsule-relocate.c
@@ -120,7 +120,7 @@ int capsule_relocate (const char *target,
// time to enter some sort of ... dangerous... zone:
// we need the mmap()ed DSO regions to have the PROT_WRITE
// flag set, so that if they've been RELRO linked we can still
- // overwrite their PLT entries.
+ // overwrite their GOT entries.
for( int i = 0; rdata.mmap_info[i].start != MAP_FAILED; i++ )
if( mmap_entry_should_be_writable( &rdata.mmap_info[i] ) )
add_mmap_protection( &rdata.mmap_info[i], PROT_WRITE );