flat assembler
Message board for the users of flat assembler.
 Home   FAQ   Search   Register 
 Profile   Log in to check your private messages   Log in 
flat assembler > Windows > Why doesn't COFF format support ALIGN larger than 4?

Author
Thread Post new topic Reply to topic
system error



Joined: 01 Sep 2013
Posts: 477
Why doesn't COFF format support ALIGN larger than 4?
Why doesn't COFF format support ALIGN larger than 4? Any particular reason?


Last edited by system error on 15 Mar 2017, 04:40; edited 1 time in total
Post 14 Mar 2017, 21:18
View user's profile Send private message Reply with quote
bitRAKE



Joined: 21 Jul 2003
Posts: 2627
Location: dank orb
IIRC, 2^13 alignment is possible? Are we talking file alignment, section alignment? Can you give an example?
Post 15 Mar 2017, 04:31
View user's profile Send private message Visit poster's website Reply with quote
system error



Joined: 01 Sep 2013
Posts: 477
I meant larger than 4. Sorry.

FASM complains "section not align enough" both in code and data if I used "ALIGN 8". I meant that directive ALIGN.
Post 15 Mar 2017, 04:43
View user's profile Send private message Reply with quote
system error



Joined: 01 Sep 2013
Posts: 477
I want to know whether it is a COFF / COFF64 -bound specification or something from FASM.
Post 15 Mar 2017, 04:46
View user's profile Send private message Reply with quote
bitRAKE



Joined: 21 Jul 2003
Posts: 2627
Location: dank orb
ALIGN bases it's limitations on the section alignment to insure granularity is actually possible. So, I would assume you've not aligned the section sufficiently.

_________________
The generation of random numbers is too important to be left to chance - Robert R Coveyou
Post 15 Mar 2017, 14:18
View user's profile Send private message Visit poster's website Reply with quote
Tomasz Grysztar
Assembly Artist


Joined: 16 Jun 2003
Posts: 6355
Location: Kraków, Poland
Only the Microsoft extensions to COFF format (the "MS COFF" as it is called in fasm) support custom alignments of sections.
Post 15 Mar 2017, 14:46
View user's profile Send private message Visit poster's website Reply with quote
system error



Joined: 01 Sep 2013
Posts: 477
Thanks for clearing that up people. I forgot that a section can be tagged with ALIGN.
Post 21 Mar 2017, 06:06
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


Powered by phpBB © 2001-2005 phpBB Group.

Main index   Download   Documentation   Examples   Message board
Copyright © 2004-2016, Tomasz Grysztar.