$ cat hello_world.sglobal _startsection .text_start:mov rax,1 mov rdi,1 mov rsi,msg mov rdx,len syscall mov rax,60 xor rdi,rdi syscallsection .data msg db"您好,世界!&#34 ;,0xa len qu $ - msg $ cat link.lintry(_start)部分{。 = 0x10080; / * vm.mmap_min_addr + p_offset的第一个段* / .text:{*(.text)} .data:{*(.data)}} $ nasm hello_world.s -f elf64 $ ld hello_world.o -o hello_world - n -t link.ld $ elfcat hello_world $ xdg-open hello_world.html 对于那个很抱歉。 曾经有一个特征,其中段和段将折叠成几个字符,而不是显示完整内容,但它被禁用,因为它是: