-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Closed
Labels
Description
$ cat x.go package main func main() { println("hello") } $ 6g x.go $ 6l x.6 $ 6nm 6.out|grep main 400c36 T main.init 423c61 B main.initdone· 400c00 T main.main 4015d8 T runtime.mainstart $ objdump -d -l --start-address=0x400c00 --stop-address=0x400c36 6.out 6.out: file format elf64-x86-64 Disassembly of section .text: 0000000000400c00 <main.main>: main.main(): ???:3 400c00: 64 48 8b 0c 25 f0 ff mov %fs:0xfffffffffffffff0,%rcx 400c07: ff ff 400c09: 48 3b 21 cmp (%rcx),%rsp 400c0c: 77 05 ja 400c13 <main.main+0x13> 400c0e: e8 91 0b 00 00 callq 4017a4 <runtime.morestack00> 400c13: 48 83 ec 10 sub $0x10,%rsp ???:4 400c17: 48 8d 34 25 78 47 41 lea 0x414778,%rsi 400c1e: 00 400c1f: 48 8d 3c 24 lea (%rsp),%rdi 400c23: 48 a5 movsq %ds:(%rsi),%es:(%rdi) 400c25: 48 a5 movsq %ds:(%rsi),%es:(%rdi) 400c27: e8 8f 6e 00 00 callq 407abb <runtime.printstring> 400c2c: e8 fe 6e 00 00 callq 407b2f <runtime.printnl> 400c31: 48 83 c4 10 add $0x10,%rsp 400c35: c3 retq $