Skip to content

Instantly share code, notes, and snippets.

@jvns
Last active December 31, 2015 01:39
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save jvns/ec07560a4484edd30d70 to your computer and use it in GitHub Desktop.
ENTRY(start)
OUTPUT_FORMAT("elf32-i386")
OUTPUT_ARCH(i386)
SECTIONS {
. = 0x7e00;
.text : {
*(.text)
}
.data : {
*(.data)
}
.rodata : {
*(.rodata)
}
.bss : {
*(.bss*);
}
}
ENTRY(start)
OUTPUT_FORMAT("elf32-i386")
OUTPUT_ARCH(i386)
SECTIONS {
. = 0x7e00;
.text : {
*(.text)
}
.bss : {
*(.bss*);
}
}
0000a070 g F .text 00000196 main
0000a210 g .text 00000000 _interrupt_handler_kbd_wrapper
0000a218 g .text 00000000 run_interrupt
0000a21b g .text 00000000 int_handler
0000a229 l .text 00000000 idt
0000a3b9 l .text 00000000 idtr
0000a3bf g .text 00000000 test1
0000a414 l d .data 00000000 .data
0000a414 l O .data 00000004 _ZN3mem4base18he097c5c5c82e35fah4v0.0E
0000a418 l d .got 00000000 .got
0000a41c l d .got.plt 00000000 .got.plt
0000a41c l O .got.plt 00000000 _GLOBAL_OFFSET_TABLE_
0000a430 g O .data.rel.local 00000018 _ZN20_rust_crate_map_main17_9e3c1c2ce1d7c3c14v0.0E
0000a430 l d .data.rel.local 00000000 .data.rel.local
0000a448 g O .data.rel.ro.local 00000008 _ZN3kbd17SCAN_CODE_MAPPING19h592943afd88cedd7ab4v0.0E
0000a448 l d .data.rel.ro.local 00000000 .data.rel.ro.local
0000a450 g O .data.rel.ro.local 00000008 _ZN3kbd25SCAN_CODE_MAPPING_SHIFTED19h592943afd88cedd7aK4v0.0E
0000a460 l d .note.rustc 00000000 .note.rustc
0000a460 l O .note.rustc 000566e6 rust_metadata
00060b50 l d .rodata 00000000 .rodata
00060b50 l O .rodata 00000059 .Lconst
00060bb0 l O .rodata 00000059 .Lconst1
00060c0c l d .eh_frame 00000000 .eh_frame
00061bc0 g O .bss 00000006 idtp
00061bc0 l d .bss 00000000 .bss
00061bc6 l O .bss 00000001 _ZN3kbd7shifted19hf52097433ee64654a74v0.0E
00061bc8 l O .bss 00000002 _ZN5stdio6curr_x18h5e6c188aebdc0c4aY4v0.0E
00061bca l O .bss 00000002 _ZN5stdio6curr_y18h5e6c188aebdc0c4a24v0.0E
00061bcc l O .bss 00000001 _crate_map_child_vectors
00061bd0 l O .bss 00000001 _rust_mod_map
SYMBOL TABLE:
tmp/broken.elf: file format elf32-i386
0000a070 g F .text 00000196 main
0000a210 g .text 00000000 _interrupt_handler_kbd_wrapper
0000a218 g .text 00000000 run_interrupt
0000a21b g .text 00000000 int_handler
0000a229 l .text 00000000 idt
0000a3b9 l .text 00000000 idtr
0000a3bf g .text 00000000 test1
0000a420 l d .rodata 00000000 .rodata
0000a420 l O .rodata 00000059 .Lconst
0000a480 l O .rodata 00000059 .Lconst1
0000a4dc l d .eh_frame 00000000 .eh_frame
0000b490 l d .got 00000000 .got
0000b494 l d .got.plt 00000000 .got.plt
0000b494 l O .got.plt 00000000 _GLOBAL_OFFSET_TABLE_
0000b4a0 l d .data 00000000 .data
0000b4a0 l O .data 00000004 _ZN3mem4base18he097c5c5c82e35fah4v0.0E
0000b4b0 g O .data.rel.local 00000018 _ZN20_rust_crate_map_main17_9e3c1c2ce1d7c3c14v0.0E
0000b4b0 l d .data.rel.local 00000000 .data.rel.local
0000b4c8 g O .data.rel.ro.local 00000008 _ZN3kbd17SCAN_CODE_MAPPING19h592943afd88cedd7ab4v0.0E
0000b4c8 l d .data.rel.ro.local 00000000 .data.rel.ro.local
0000b4d0 g O .data.rel.ro.local 00000008 _ZN3kbd25SCAN_CODE_MAPPING_SHIFTED19h592943afd88cedd7aK4v0.0E
0000b4e0 l d .note.rustc 00000000 .note.rustc
0000b4e0 l O .note.rustc 000566e6 rust_metadata
00061bc8 g O .bss 00000006 idtp
00061bc8 l d .bss 00000000 .bss
00061bce l O .bss 00000001 _ZN3kbd7shifted19hf52097433ee64654a74v0.0E
00061bd0 l O .bss 00000002 _ZN5stdio6curr_x18h5e6c188aebdc0c4aY4v0.0E
00061bd2 l O .bss 00000002 _ZN5stdio6curr_y18h5e6c188aebdc0c4a24v0.0E
00061bd4 l O .bss 00000001 _crate_map_child_vectors
00061bd8 l O .bss 00000001 _rust_mod_map
SYMBOL TABLE:
tmp/correct.elf: file format elf32-i386
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment