yasm/modules/objfmts/win32/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
..
gas COFF/PE: Always set paddr and vaddr to 0. 2014-09-26 21:12:42 -07:00
export.asm * coff-objfmt.c (win32_objfmt_directive): New function that implements the 2005-01-29 10:24:23 +00:00
export.hex Fix #139: Fix a number of issues with win32 safeseh support. 2010-07-31 10:17:05 +00:00
Makefile.inc Remove $Id$ and RCSID() usage. 2011-08-19 10:43:16 -07:00
win32-curpos.asm Add a feature and fix a long-standing bug in Win64 output. The new feature 2006-03-20 00:43:18 +00:00
win32-curpos.hex COFF/PE: Always set paddr and vaddr to 0. 2014-09-26 21:12:42 -07:00
win32-longsect.asm * coff-objfmt.c: Support section names >8 characters when outputting Win32 2005-11-23 07:27:41 +00:00
win32-longsect.hex COFF/PE: Always set paddr and vaddr to 0. 2014-09-26 21:12:42 -07:00
win32-overdef.asm Fix #70 by allowing overrides on the default (usually ".text") section. 2006-02-25 19:39:57 +00:00
win32-overdef.hex Fix #139: Fix a number of issues with win32 safeseh support. 2010-07-31 10:17:05 +00:00
win32-safeseh.asm Fix #130: Add SAFESEH directive for indicating SEH handlers in win32 output. 2008-02-08 18:26:40 +00:00
win32-safeseh.hex COFF/PE: Always set paddr and vaddr to 0. 2014-09-26 21:12:42 -07:00
win32-safeseh.masm Fix #130: Add SAFESEH directive for indicating SEH handlers in win32 output. 2008-02-08 18:26:40 +00:00
win32-segof.asm * coff-objfmt.c (coff_objfmt_output_value): Add support for SEG value as 2006-03-20 06:15:15 +00:00
win32-segof.hex COFF/PE: Always set paddr and vaddr to 0. 2014-09-26 21:12:42 -07:00
win32_test.sh Remove $Id$ and RCSID() usage. 2011-08-19 10:43:16 -07:00
win32test.asm Add Win32 object format (untested, but compared against NASM output). 2003-03-24 06:54:17 +00:00
win32test.c Bite the bullet and convert tabs to spaces. Previously yasm's source has 2007-04-22 03:32:46 +00:00
win32test.hex COFF/PE: Always set paddr and vaddr to 0. 2014-09-26 21:12:42 -07:00