Enable delay signing in ilasm
authorMichelle McDaniel <adiaaida@gmail.com>
Mon, 13 Feb 2017 19:00:58 +0000 (11:00 -0800)
committerMichelle McDaniel <adiaaida@gmail.com>
Wed, 15 Feb 2017 17:56:30 +0000 (09:56 -0800)
commit974b9fa7e5b94d59bb0f8acfd3b4b90e31987946
treea55c84168a5222e838177013715f9d5a39d24616
parentd546cbcd67413b40d7fcdcfeececf411adee62d5
Enable delay signing in ilasm

Corefx needs the .Net Core version of ilasm to create delay signable
assemblies. This change brings back AllocateStrongNameSignature that was
deleted in 2efbb92 and modifies it to use similar logic from Roslyn to
determine the size of the signature that we need to allocate space for.

Fixes dotnet/coreclr#9292.

Commit migrated from https://github.com/dotnet/coreclr/commit/51f460f2e24765bf78ab9edac55895be6487cf18
src/coreclr/src/ilasm/assembler.h
src/coreclr/src/ilasm/writer.cpp