[metal] Clarify comment in libc/calls/metalfile.c

This commit is contained in:
tkchia 2022-10-19 22:05:49 +00:00
parent 29fae6aca6
commit 40544765c0

View file

@ -54,7 +54,12 @@ textstartup void InitializeMetalFile(void) {
if (IsMetal()) {
/*
* Copy out a pristine image of the program before the program might
* decide to modify its own .data section. Do this only if needed.
* decide to modify its own .data section.
*
* This code is included if a symbol "file:/proc/self/exe" is defined
* (see libc/calls/metalfile.internal.h & libc/calls/metalfile_init.S).
* The zipos code will automatically arrange to do this. Alternatively,
* user code can STATIC_YOINK this symbol.
*/
size_t size = ROUNDUP(_tdata_end - _base, 4096);
void *copied_base;