When I compile
__attribute__((section(".text"))) const int x = 42;
int main(){ return x; }
with gcc (works with tinycc and clang), I get
Warning: ignoring changed section attributes for .text.
What is the cause of the warning and how can it be eliminated while still keeping the (always readonly) data in .text?