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