gdb中执行命令disassemble /rm后,
char bufe1[6] = "1234" 与 char name2[8] ="3456789" 对应的反汇编确不一样,
一个从内存中取值,一个从rip中取值,这是为啥?
71 char bufe1[6]="1234";
=> 0x000000000040064b <+15>: c7 45 f0 31 32 33 34 movl $0x34333231,-0x10(%rbp)
0x0000000000400652 <+22>: 66 c7 45 f4 00 00 movw $0x0,-0xc(%rbp)
72 char name1[]="110";
0x0000000000400658 <+28>: 8b 05 59 01 00 00 mov 0x159(%rip),%eax # 0x4007b7 <__dso_handle+39>
0x000000000040065e <+34>: 89 45 e0 mov %eax,-0x20(%rbp)
73 char name2[8]="3456789";
0x0000000000400661 <+37>: 48 8b 05 53 01 00 00 mov 0x153(%rip),%rax # 0x4007bb <__dso_handle+43>
0x0000000000400668 <+44>: 48 89 45 d0 mov %rax,-0x30(%rbp)