> Working gradualy, I tried to modify some data in a .data section, > and got a segmentation fault. You probably didn't set your the writable flag for the program section that includes .data. If you created your program section header table manually, make sure that p_flags (the second-to-last field) includes the writable flag (4 = readable, 2 = writable, 1 = executable). > Is that because there isn't a section header table with an entry > indicating that the .data section is writable? No, the section header table is not used when loading/executing ELF binaries. b - : send the line "unsubscribe linux-assembly" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
- References:
- nasm -f bin / Elf format
- From: Thiago Silva
- nasm -f bin / Elf format
- Prev by Date: nasm -f bin / Elf format
- Next by Date: Newbie at asmutils
- Previous by thread: nasm -f bin / Elf format
- Next by thread: grub thing
- Index(es):