-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #258 from epasveer/255-go-to-address-in-the-assemb…
…ly-window-doesnt-work 255 go to address in the assembly window doesnt work
- Loading branch information
Showing
11 changed files
with
104 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
square_test | ||
square_test.o | ||
isolated_square.o | ||
*.seer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
.PHONY: all | ||
all: square_test | ||
|
||
square_test.o: square_test.s | ||
as --32 -g square_test.s -o square_test.o | ||
|
||
isolated_square.o: isolated_square.s | ||
as --32 -g isolated_square.s -o isolated_square.o | ||
|
||
square_test: square_test.o isolated_square.o | ||
ld -m elf_i386 -g -o square_test square_test.o isolated_square.o | ||
|
||
.PHONY: clean | ||
clean: | ||
rm -f square_test square_test.o isolated_square.o | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
|
||
$ objdump -t square_test | ||
|
||
square_test: file format elf32-i386 | ||
|
||
SYMBOL TABLE: | ||
00000000 l df *ABS* 00000000 isolated_square.o | ||
08048070 l .text 00000000 end_square | ||
08048067 g F .text 00000000 square | ||
08048054 g .text 00000000 _start | ||
08049074 g .text 00000000 __bss_start | ||
08049074 g .text 00000000 _edata | ||
08049074 g .text 00000000 _end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# file name: isolated_square.s | ||
|
||
.section .data | ||
|
||
.section .text | ||
|
||
.globl square | ||
|
||
.type square,@function | ||
|
||
square: | ||
pushl %ebp | ||
movl %esp, %ebp | ||
movl 8(%ebp), %eax | ||
|
||
imull %eax, %eax | ||
|
||
end_square: | ||
movl %ebp, %esp | ||
popl %ebp | ||
ret | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# file name: square_test.s | ||
.section .data | ||
|
||
.section .text | ||
|
||
.globl _start | ||
|
||
_start: | ||
pushl $12 | ||
call square | ||
addl $4, %esp | ||
|
||
movl %eax, %ebx | ||
movl $1, %eax | ||
int $0x80 | ||
|