2017-02-11 51 views

回答

1

GNU彙編程序不支持它。你能來最接近的是做這樣的事情:

.set note_info, 0 
.set note_next, 4 
.set note_size, 8 

你會使用這些符號之類的語句如下:

head: 
    .space note_size 

    movl $0, head + note_info 
    mov head + note_next, %esi 
    mov note_next(%esi), %esi 
+0

不應note_info是4 – sdfsdfsdf

+0

@sdfsdfsdf它在偏移0結構體。 –

+0

@sdfsdfsdf總是有不止一種方式來給貓打個皮。 GAS還有'.struct'指令來幫助產生絕對偏移量。 http://linux.web.cern.ch/linux/scientific4/docs/rhel-as-en-4/struct.html –

相關問題