2 ms·
This won't work anymore, as compilers will now place const arrays in the .rodata section, which is non-executable. Luckily, there's an easy fix - just qualify t
by 10000truths 3y ago
This won't work anymore, as compilers will now place const arrays in the .rodata section, which is non-executable. Luckily, there's an easy fix - just qualify the declaration of the array with:
__attribute__((section(".text"))
- arlcode 3y agoIn a way that's unfortunate because the "google keyword" .text gives away what is happening here. I bet there are some people who wouldn't even think about the fungible nature of data types (especially if they come from a "modern" language).