flat assembler
Message board for the users of flat assembler.

Index > Main > [ELF64 align] Why am I getting this error?

Author
Thread Post new topic Reply to topic
HaHaAnonymous



Joined: 02 Dec 2012
Posts: 1180
Location: Unknown
HaHaAnonymous
[ Post removed by author. ]


Last edited by HaHaAnonymous on 28 Feb 2015, 18:55; edited 2 times in total
Post 23 Dec 2013, 19:22
View user's profile Send private message Reply with quote
baldr



Joined: 19 Mar 2008
Posts: 1651
baldr
HaHaAnonymous,

Section .data is aligned on 8-byte boundary (due to format ELF64 directive), thus maximum granularity you can align internally on is 8-byte. Add align 16 to section directive.
Post 23 Dec 2013, 19:29
View user's profile Send private message Reply with quote
HaHaAnonymous



Joined: 02 Dec 2012
Posts: 1180
Location: Unknown
HaHaAnonymous
[ Post removed by author. ]


Last edited by HaHaAnonymous on 28 Feb 2015, 18:54; edited 1 time in total
Post 23 Dec 2013, 19:37
View user's profile Send private message Reply with quote
baldr



Joined: 19 Mar 2008
Posts: 1651
baldr
HaHaAnonymous,
Code:
format ELF64

section '.data' writeable align 16

data0: dq $0000000000000000
align 16
data1: dd $00000000    
Post 23 Dec 2013, 19:41
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.