flat assembler
Message board for the users of flat assembler.
Index
> Linux > .text |
Author |
|
maslan 15 Apr 2004, 14:36
hi guys
i have question here in linux can i write to the code segment (.text segment) like dos or only the bss _________________ Maslan I'm searching for perfection so, even if u need portability u 've to use Assembly --- http://www.maslanlab.org --- http://libosdk.berlios.de http://maslanedit.sf.net http://maslancms.sf.net |
|||
15 Apr 2004, 14:36 |
|
maslan 20 Apr 2004, 15:34
ok no answer !! all i need to use one segment for code ,data ,bss as i do for dos !!!!! any answer _________________ Maslan I'm searching for perfection so, even if u need portability u 've to use Assembly --- http://www.maslanlab.org --- http://libosdk.berlios.de http://maslanedit.sf.net http://maslancms.sf.net |
|||
20 Apr 2004, 15:34 |
|
maslan 20 Apr 2004, 15:49
oh why u don't use linux it is the best OS _________________ Maslan I'm searching for perfection so, even if u need portability u 've to use Assembly --- http://www.maslanlab.org --- http://libosdk.berlios.de http://maslanedit.sf.net http://maslancms.sf.net |
|||
20 Apr 2004, 15:49 |
|
maslan 24 Apr 2004, 17:48
hey it doesn't work 100% it gives me segmentation fault
_________________ Maslan I'm searching for perfection so, even if u need portability u 've to use Assembly --- http://www.maslanlab.org --- http://libosdk.berlios.de http://maslanedit.sf.net http://maslancms.sf.net |
|||
24 Apr 2004, 17:48 |
|
Tomasz Grysztar 24 Apr 2004, 18:19
Please post some source to clarify your problem.
|
|||
24 Apr 2004, 18:19 |
|
crc 01 May 2004, 12:13
To write to the code segment, you need to tell Linux to set the read/write permissions. I use this code at the start of a RetroForth to do this:
Code: mov eax, 07dh ;sys mprotect (pinched from IsForth mov ebx, 08048000h mov ecx, 00100000h mov edx, 7 int 080h ;make the entire program space rwx Once this is done, you can write to the code segment freely. |
|||
01 May 2004, 12:13 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.