flat assembler
Message board for the users of flat assembler.
![]() |
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 |
|||
![]() |
|
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 |
|||
![]() |
|
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 |
|||
![]() |
|
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 |
|||
![]() |
|
Tomasz Grysztar 24 Apr 2004, 18:19
Please post some source to clarify your problem.
|
|||
![]() |
|
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 Once this is done, you can write to the code segment freely. |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2023, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.