Fix regression in MODE=asan build

This commit is contained in:
Justine Tunney 2022-11-06 01:05:13 -07:00
parent be16bcdcd3
commit 002df0f16c
No known key found for this signature in database
GPG key ID: BE714B4575D6E328

View file

@ -50,14 +50,14 @@ STATIC_YOINK("_init_metalfile");
void *__ape_com_base; void *__ape_com_base;
size_t __ape_com_size = 0; size_t __ape_com_size = 0;
textstartup void InitializeMetalFile(void) { textstartup noasan void InitializeMetalFile(void) {
if (IsMetal()) { if (IsMetal()) {
/* /*
* Copy out a pristine image of the program before the program might * Copy out a pristine image of the program before the program might
* decide to modify its own .data section. * decide to modify its own .data section.
* *
* This code is included if a symbol "file:/proc/self/exe" is defined * This code is included if a symbol "file:/proc/self/exe" is defined
* (see libc/calls/metalfile.internal.h & libc/calls/metalfile_init.S). * (see libc/calls/metalfile.internal.h & libc/calls/metalfile_init.S).
* The zipos code will automatically arrange to do this. Alternatively, * The zipos code will automatically arrange to do this. Alternatively,
* user code can STATIC_YOINK this symbol. * user code can STATIC_YOINK this symbol.
*/ */