flat assembler
Message board for the users of flat assembler.

Index > 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: 670
system error 14 Mar 2017, 21:18
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: 4042
Location: vpcmpistri
bitRAKE 15 Mar 2017, 04:31
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: 670
system error 15 Mar 2017, 04:43
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: 670
system error 15 Mar 2017, 04:46
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: 4042
Location: vpcmpistri
bitRAKE 15 Mar 2017, 14:18
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.

_________________
¯\(°_o)/¯ “languages are not safe - uses can be” Bjarne Stroustrup
Post 15 Mar 2017, 14:18
View user's profile Send private message Visit poster's website Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8353
Location: Kraków, Poland
Tomasz Grysztar 15 Mar 2017, 14:46
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: 670
system error 21 Mar 2017, 06:06
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


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

Website powered by rwasa.