Linked Questions

2 votes
0 answers
346 views

The second paragraph in Section 3.2.1 Basic Flat Model in "Intel® 64 and IA-32 Architectures Software Developer’s Manual Volume 3" has the following sentence: To implement a basic flat ...
João Afonso's user avatar
  • 1,934
112 votes
3 answers
56k views

From wiki Executable and Linkable Format: The segments contain information that is necessary for runtime execution of the file, while sections contain important data for linking and relocation. Any ...
tsing's user avatar
  • 1,571
8 votes
5 answers
3k views

So i was reading a paper, and in it, they said that statically disassembling the code of a binary is undecidable, because a series of bytes could be represented as many possible ways as shown in ...
OneAndOnly's user avatar
  • 1,066
8 votes
3 answers
9k views

Goal I want to understand how executables work. I hope that understanding one very specific example in full detail will enable me to do so. My final (perhaps too ambitious) goal is to take a hello-...
Adomas Baliuka's user avatar
6 votes
3 answers
4k views

I am wondering if there is any sequence of instructions without use of any other register to copy the lower 32 bits of RAX to its higher 32 bits. Of course, I want EAX intact as well. Preferably ...
masec's user avatar
  • 685
5 votes
2 answers
4k views

I am learning assembly and low-level programming itself and reading a book about it. It is said there that we can put any data inside the .text section of an elf file but of course we can't mutate it ...
VP.'s user avatar
  • 17k
9 votes
1 answer
2k views

I'm trying to wrap my head around the x86 instruction encoding format. All the sources that I read still make the subject confusing. I'm starting to understand it a little bit but one thing that I'm ...
Daniel Catalano's user avatar
4 votes
2 answers
1k views

I have a question about putting data (address table or other data) in the .text section under its function or put in .data section? For example, I have a function like this : extern int i0(); extern ...
HelloMachine's user avatar
0 votes
2 answers
3k views

I am trying to write a simple assembly code to spit out hex values to the screen. There are two files print_screen.asm which is working with other modules. I think the problem is in my logic when ...
Bipul Adh's user avatar
  • 113
1 vote
1 answer
2k views

Well the question is straightforward. I want to know if declaring variables inside procedures is a okay thing to do. like this for example: SAMPLE PROC NEAR ; PROC BODY RET VARIABLE DW 0000H ...
ponir's user avatar
  • 477
2 votes
1 answer
862 views

Is TLB hierarchy inclusive on modern x86 CPU (e.g. Skylake, or maybe other Lakes)? For example, prefetchtn brings data to the level cache n + 1 as well as a corresponding TLB entry in DTLB. Will it ...
Some Name's user avatar
  • 9,740
1 vote
2 answers
1k views

... in other words, is x86-64 a uniquely decodable code that, no matter where I start decoding it, always eventually yields the correct disassembly code? Let's say this (the ground truth) is what part ...
fjs's user avatar
  • 420
4 votes
2 answers
432 views

Basically, according to my knowledge, If we use GDB to debug execute code compiled from C source code, compiler will leave the source code Path in the ELF/PE file, so GDB will use the source code ...
lllllllllllll's user avatar
0 votes
0 answers
1k views

I have defined an array in asm as: arr: .word 1,3,9,27 And now that I'm in gdb, the current way I'm using to find and print that array is looking for the instruction that looks like it might include ...
samuelbrody1249's user avatar
3 votes
1 answer
478 views

Intro I am going to write my own FORTH "engine" in GNU assembler (GAS) for Linux x86-64 (specifically for AMD Ryzen 9 3900X that is siting on my table). (If it will be success, I may use ...
gilhad's user avatar
  • 629

15 30 50 per page