Infinite including leads to out of memory after hard freeze because of infinite loop. According to specs INCLUDE should be limited to 10 levels depth.
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Adding a marker string to the vector which otherwise contain only real tokens is too hacky. The linker script handler is intentionally dumb and simple. Please leave it alone now.
Comment Actions
But I compare address of first element, not the token values:
if (Tok.begin() == EndInclude.begin())
That should not affect the real tokens..
Comment Actions
Yes I know. This change itself is correct. It's that I don't want to add more safeguard code here as all code in this file will soon be rewritten when we start working on real implementation.