Skip to content
Snippets Groups Projects
Commit 96785572 authored by Vivek Das Mohapatra's avatar Vivek Das Mohapatra
Browse files

capsule-dlmopen.c: explain what some of the ELF parameters mean

parent 47a3b768
No related branches found
No related tags found
1 merge request!311Build capsule-capture-libs from a bundled copy of libcapsule
...@@ -1320,6 +1320,10 @@ wrap (const char *name, ...@@ -1320,6 +1320,10 @@ wrap (const char *name,
// well formed entries into the mmap()ed DSO region. // well formed entries into the mmap()ed DSO region.
// (tbf if the linker is putting duff entries here we're boned anyway) // (tbf if the linker is putting duff entries here we're boned anyway)
// //
// dyn is the address of the dynamic section
// base is the start of the program header in memory
// start should be the offset from the program header to its dyn section
//
// the utility functions expect an upper bound though so set that to // the utility functions expect an upper bound though so set that to
// something suitably large: // something suitably large:
size_t size = SIZE_MAX - base - (ElfW(Addr)) dyn; size_t size = SIZE_MAX - base - (ElfW(Addr)) dyn;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment