Re: nasm -f bin / Elf format

Brian Raiter <[email protected]> Wed, 22 Feb 2006 16:32:44 -0800
Newsgroups org.kernel.vger.linux-assembly
Message-ID <[email protected]>
> 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