Re: hello again :D

Frank Kotler <[email protected]>
Newsgroups org.kernel.vger.linux-assembly
Message-ID <[email protected]>
Niel A wrote:

Hi Niel,

> section .text

Ricardo is correct - the ".text" section isn't writeable. Nasm knows 
"write" as a possible section property/attribute. A look at the .o file 
will show ".text" as writeable. But when ld gets ahold of it, ld knows 
".text" is supposed to be readonly, and changes it back! So to fool ld:

section code write

... seems to do it. Presumably, there's a reason why code pages are RO - 
be careful with this stuff!

Best,
Frank
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.