mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-08 19:00:27 +00:00
[metal] Clarify comment in libc/calls/metalfile.c
This commit is contained in:
parent
29fae6aca6
commit
40544765c0
1 changed files with 6 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue