In E2 I want to write some data in the .text section of an address, what should i do?
In E2 I want to write some data in the .text section of an address, what should i do?
In E2 I want to write some data in the .text section of an address, what should i do?
I use E2, and i want to write some data such ad {‘a’,’b’,’c’,’d’,’e’,’f’,’g’,’g’}to .text section. the address such as 0xFFFE8400, what should i do?
I have add some expression in .text section, and use code”char sgy_data2[32] __attribute__((section(“All_Section”))) = {‘a’,’b’,’c’,’d’,’e’,’f’,’g’,’g’};”, but will i open .bin file, i cant find the data. What else should I need to do?
Can you help me?
Hello MrSprint,
In order to place a variable at a specific address, you can use either:
1. #pragma ADDRESS var_name 0x1234…
2. split your text section in order to be able to define another section at your desired address; then place your variable in that new section.
Hope this helps.
–
Best Regards,
Grigore Dobra,
The GNU Tools Team