[linker] Mark SecurityDeclarations [#28918]
authorSebastien Pouliot <sebastien@xamarin.com>
Wed, 22 Apr 2015 01:42:11 +0000 (21:42 -0400)
committerSebastien Pouliot <sebastien@xamarin.com>
Wed, 22 Apr 2015 01:42:11 +0000 (21:42 -0400)
commit669572d6c946fca04b9aa7999d2939b6017fb2c6
treece5d193369d1f0babd40242b7eda6c7870eb0e0e
parenta497d8ad0cae2a9958d84e7d266122296de0aa23
[linker] Mark SecurityDeclarations [#28918]

Security declarations looks very similar to custom attributes - but
they are not (e.g. a different metadata table).

They need to be marked, just like other metadata, by the linker because
they can encode types that won't show up in the type (or assembly)
references.

Ignoring this can create an invalid binary (the kind that even Cecil
can't load back for further processing).
mcs/tools/linker/Mono.Linker.Steps/MarkStep.cs