|
From: Philipp K. K. <pk...@sp...> - 2017-08-15 19:26:19
|
I haven't been using the keyword __at much. But now I have a case where I want code to be placed in the 0x0000 to 0x9fff range. However, at the specific location 0x1ff0 I want 16 specific header bytes. The linker should just put the code around the header (which might require leaving a few bytes unused), but it doesn't work for me so far. I tried const struct header __at(0x1ff0) header = ...; but the linker creates an overlap: The header gets put into the binary at the correct location with the correct data. But that means the data ends up in the middle of a function. Philipp |