Yasm and bad Windows executables using Mingw/ld
Peter Tanski
p.tanski at gmail.com
Wed Dec 13 15:21:23 PST 2006
On Dec 13, 2006, at 2:11 PM, Peter Johnson wrote:
> On Tue, 12 Dec 2006, Peter Tanski wrote:
>> For compatibility with binutils/ld, which loads .comment sections
>> into memory (invalid in PE-COFF files), and since the section must
>> be read only, GAS outputs the .comment section to a specially
>> named ".rdata" section: ".rdata$zzz".
>>
>> So modification would only be necessary for compatibility with
>> binutils/ld. I can look into modifications to Yasm to save you
>> some time; I am not sure whether you would *want* to modify Yasm's
>> output just for compatibility with binutils/ld, unless that was
>> specified by a different output format than win32.
>
> I'll go ahead and handle it for compatibility's sake. It makes it
> significantly easier that it comes in through the .ident directive
> (I should have guessed that was the case).
>
> Thanks for tracking down the cause. I'll take care of getting it
> patched in Yasm.
No problem: I'm glad I could help :) Thanks for patching Yasm.
Cheers,
Pete
More information about the yasm-devel
mailing list