<div dir="ltr"><br>Hello !<br><br>For the task 5, I try to mark the .data section as executable.<br>I tried in gdb to call the mprotect function:<br><br>(gdb) call mprotect(0x0804a010, 4, 0x1|0x2|0x4)<br>$1 = -1<br>, where the 0x0804a010 is the address of .data section found with objdump.<br>You see that mprotect returns error.<br><br>Also, I tried to compile with -S flag, and update the task5.s with<br>".section .data,"awx",@progbits"<br>but, when I compile, I get<br><br>gcc -C task5.s<br>test5.s: Assembler messages:<br>test5.s:5: Warning: ignoring changed section attributes for .data<br><br>and the .data section remains WA.<br><br>So, how can I run code from .data section ?<br><br>Thanks, Alex<br><br></div>