Following possible scripts triggered accessing to Target when it was not yet
initialized (was nullptr).
MEMORY { name : ORIGIN = DATA_SEGMENT_RELRO_END; }
MEMORY { name : ORIGIN = CONSTANT(COMMONPAGESIZE); }Patch errors out instead.
Differential D36140
[ELF] - Do not segfault if linkerscript tries to access Target too early. Authored by grimar on Aug 1 2017, 4:56 AM.
Details Following possible scripts triggered accessing to Target when it was not yet MEMORY { name : ORIGIN = DATA_SEGMENT_RELRO_END; }
MEMORY { name : ORIGIN = CONSTANT(COMMONPAGESIZE); }Patch errors out instead.
Diff Detail Event TimelineComment Actions Please define a helper function getPageSize() to avoid repeating the same error checking twice. |
return [=] -> uint64_t { to remove casts.