Re: Yasm working with Win32

"Krasimir Angelov" <[email protected]>
Newsgroups gmane.comp.lang.haskell.cvs.all
Message-ID <c97c08d20612110011o3c7027afq1b2b1c57085b7aff__32108.7356460795$1165824701$gmane$org@mail.gmail.com>
Is there any chance to have it working with all debug symbols? That
way it will be easier to use the Visual Debugger with GHC compiled
code.

Cheers,
  Krasimir

On 12/10/06, Peter Tanski <[email protected]> wrote:
> I thought you might like to know that after the Yasm developer, Peter
> Johnson, added support for complex relocations and a little testing,
> Yasm now works for Win32 (and, presumably Win64 but I am not able to
> test that far).  To try it yourself, grab the latest development
> snapshot, 'yasm-r1705.exe' or later from http://cvs.tortall.net/
> projects/yasm/snapshots/r1705/ .
>
> There is one caveat: the Yasm-output object file with complex
> relocations results in extra symbols that cause the Windows loader to
> choke.  You need to strip all symbols ('ld -s ...') after assembling
> the object file.
>
> Here is an example session:
>
> (in MSYS):
>  > ghc -pgma "yasm-r1705" -opta "-a x86" -opta "-p gas" -opta "-f
> win32" -optl-s hello.hs -o hello
> --yasm will complain that it does not recognise the "-c" option; this
> is an artifact in GHC
>
>  > hello
> yasm works!
>
> Notes:
> architecture: -a x86 (i386)
> parser: -g gas
> obj format: -f win32 (win32-COFF)
>
> Next on the list is to get GHC to build using Yasm and test it...
>
> Cheers,
> Pete
>
> _______________________________________________
> Cvs-ghc mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/cvs-ghc
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.