This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFC: Make dotnet assemblies test more robust


Omair Majid <omajid@redhat.com> writes:

> Omair Majid <omajid@redhat.com> writes:
>
>> Nick Clifton <nickc@redhat.com> writes:
>>
>>> I think that what we need to do is to extend gentestdlls.c so that
>>> it generates a normal x86 PE dll file as well.  Then the test can
>>> be extended to check this file first.  If the target objdump is
>>> able to parse this file, then it should be able to parse the other
>>> two files as well.  If it cannot then there is an error.  (Actually
>>> 32-bit PE toolchains may only be able to parse one of the new .NET
>>> PE dlls).
>>
>> Thanks for the idea! How does the attached patch look?
>
> Oops. I just realized that I made a mistake in strcmp. Fixed now.
>
> binutils/ChangeLog:
>
> 2019-07-25  Omair Majid  <omajid@redhat.com>
>
> 	* testsuite/binutils-all/objdump.exp
> 	(test_objdump_dotnet_assemblies): Fix test to distinguish errors
> 	in parsing simple pei-i386 and pei-x86-64 vs parsing the newly
> 	introduced machine types.
> 	* testsuite/gentestdlls.c (write_simple_dll): New function.
> 	(main): Generate simple and Linux-specific variants of pei-i386
> 	and pei-x86-64 files so both can be used by tests.

Ping?

Thanks,
Omair

--
PGP Key: B157A9F0 (http://pgp.mit.edu/)
Fingerprint = 9DB5 2F0B FD3E C239 E108  E7BD DF99 7AF8 B157 A9F0


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]