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. grimar on Aug 1 2017, 4:56 AM. Authored by
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. |
Rename getPageSize.