.bss
2
在缓冲区内,而不发出系统调用。有可能吗?
我的尝试失败了:
.section .text
.section .bss
.lcomm SAMPLE_BUFFER, 8
.globl _start
_start:
movl $2,SAMPLE_BUFFER
movl $1, %eax
int $0x80
执行时:
$ as --32 buffer.s -o buffer.o
$ ld -m elf_i386 buffer.o -o buffer
$ ./buffer
fish: â./bufferâ terminated by signal SIGSEGV (Address boundary error)