flat assembler
Message board for the users of flat assembler.

Index > Programming Language Design > Can I get .obj .lib (and maybe .o .a) file format reference?

Author
Thread Post new topic Reply to topic
vivik



Joined: 29 Oct 2016
Posts: 671
vivik 31 Mar 2018, 08:50
object files and libraries
Post 31 Mar 2018, 08:50
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8356
Location: Kraków, Poland
Tomasz Grysztar 31 Mar 2018, 09:33
For the COFF format the best reference is the official PE/COFF specification from Microsoft.
There is also this nice old website about the DJGPP COFF variant if you'd like something simpler to begin with. Note that DJGPP COFF (generated by fasm with "format COFF" setting) is generally a subset of modern Microsoft's COFF (generated by fasm with "format MS COFF" setting), with some minor differences in how relative relocations are computed.

As for the ELF format, the original specification, though dated, should still suffice (with supplements for things like x86-64 ABI).
Post 31 Mar 2018, 09:33
View user's profile Send private message Visit poster's website 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.