Attention is currently required from: Jakub Czapiga, Jan Dabros.
1 comment:
File tests/lib/bootmem-test.c:
Patch Set #5, Line 29: to avoid problems with compile-time expressions containing symbols. */
I had problems with `#define STACK_END_TO_RESERVED_START_SIZE (RESERVED_START - STACK_END)` and simi […]
So using `<constant> - <symbol>` in a static initializer also fails? I understand why `<symbol> - <symbol>` would fail (and that's how you had it at first... did you try it again after changing the RESERVED region to just use constants?), but I think the other one should be perfectly doable using a relocation with an offset. Maybe GCC isn't as smart as I was hoping it would be there...
If it's not possible I'd just make one special constant for the stack end to use in that case (with a comment why it's needed), but not for every other symbol you have.
To view, visit change 43510. To unsubscribe, or for help writing mail filters, visit settings.