GNU GAS: Label is not relatively referenced
问题 I am writing a little bootsector for learning purpose. Here is boot.S .code16 .text movw $0xB800, %ax /* 0xB000 is the text screen video memory */ movw %ax, %es /* set it as the %es segment */ movb label, %al movb %al, %es:0x0 /* screen[0] = 'A' */ movb $0x07, %es:0x1 /* white on black */ jmp . label: .byte 'A .=510 .byte 0x55 .byte 0xAA and here is the Makefile I use to compile it to a raw binary file hdd.img: boot.S as $< -o boot.o ld --oformat binary -Ttext 0x7c00 boot.o -o hdd.img I face