yasm/modules/objfmts/coff/tests
Peter Johnson 1910e91479 COFF/PE: Always set paddr and vaddr to 0.
It appears that GNU binutils always interpret PE/COFF object files as if
they were executable files, namely that the paddr field is a rounded-up
section size (aka virtual size).  Yasm previously followed the Microsoft
specification which stated that for object files this field should be set
to the "physical address" of the section (e.g. the sum of all previous
section sizes).  However, several other sources state this field should be
set to 0 in object files, and it appears that Microsoft tools accept this.

For compatibility with the GNU tools, this commit makes Yasm always set the
paddr/vsize field to 0.

This commit also eliminates the COFF_SET_VMA customization for COFF
files.  Previously this was used to set LMA=VMA in COFF, but LMA=0 in PE.
Now that VMA is always 0, this is no longer required (LMA=VMA=0 in both
PE and COFF).
2014-09-26 21:12:42 -07:00
..
coff_test.sh Remove $Id$ and RCSID() usage. 2011-08-19 10:43:16 -07:00
cofftest.asm Add COFF object format (for DJGPP). No debugging support yet (need to design 2002-10-21 09:10:37 +00:00
cofftest.c Bite the bullet and convert tabs to spaces. Previously yasm's source has 2007-04-22 03:32:46 +00:00
cofftest.hex COFF/PE: Always set paddr and vaddr to 0. 2014-09-26 21:12:42 -07:00
cofftimes.asm Correctly add in multiples (from TIMES operator) into section length. 2003-07-12 01:58:37 +00:00
cofftimes.hex COFF/PE: Always set paddr and vaddr to 0. 2014-09-26 21:12:42 -07:00
Makefile.inc Remove $Id$ and RCSID() usage. 2011-08-19 10:43:16 -07:00
x86id.asm * On most files: re-enable $IdPath$ as $Id$, and enable Id keyword expansion. 2004-09-04 01:24:57 +00:00
x86id.errwarn * coff-objfmt.c (coff_objfmt_section_switch): Fix up handling of GAS flags 2006-04-01 09:09:53 +00:00
x86id.hex COFF/PE: Always set paddr and vaddr to 0. 2014-09-26 21:12:42 -07:00