i found an article about self modifying code and tried to do some examples, but i get always segmentation faults. As fas as i can understand, there is a violation in memory permissions. The code segment is (r)ead/e(x)ecute and so the attempt of writting results to this fault. Is there a way to test the program either by changing the
Tag: assembly
Compile/run assembler in Linux?
I’m fairly new to Linux (Ubuntu 10.04) and a total novice to assembler. I was following some tutorials and I couldn’t find anything specific to Linux. So, my question is, what is a good package to compile/run assembler and what are the command line commands to compile/run for that package? Answer The GNU assembler (gas) and NASM are both good
Is QEMU good for learning programming in assembler for ARM and PowerPC?
I want to learn programming in assembler for PowerPC and ARM, but I’m unable to buy real hardware for this purpose. I’m thinking about using QEMU for that. However I’m not sure if it emulates both architectures enough well, that I’ll compile and run my programs in native assembler on it? Answer QEMU works well for testing program correction (i.e.
Trying to understand gcc’s complicated stack-alignment at the top of main that copies the return address
hi I have disassembled some programs (linux) I wrote to understand better how it works, and I noticed that the main function always begins with: so my question is: why all this work is done ?? I only understand the use of: the rest seems useless to me… Answer I’ve had a go at it: