Displaying 1 result from an estimated 1 matches for "sht_init_array".
Did you mean:
dt_init_array
2020 Jul 25
2
Any LLD guarantees on section alignment across TUs?
Suppose i write
// foo.cpp
__attribute__((section(“foo”))) int x;
// bar.cpp
__attribute__((section(“foo”))) int y;
And i compile and link these two object files together using lld. What
assumptions can I make regarding alignment/padding between the two symbols?
I’m comfortable getting an answer by reading the source, but that won’t
tell if any properties i discover are guaranteed or just