Skip to content

Commit

Permalink
[linker] blacklist System.Net.Sockets.MulticastOption fields
Browse files Browse the repository at this point in the history
 - merge fix for https://bugzilla.xamarin.com/show_bug.cgi?id=21578
   the MulticastOption's 'private IPAddress local' field was
   removed by linker and the app crashed later at runtime.
 - when System.Net.Sockets.MulticastOption object
   is passed to System.Net.Sockets.Socket.SetSocketOption
   and thru it to System.Net.Sockets.Socket.SetSocketOption_internal
   it accesses passed object fields
   (thru few more native calls).
  • Loading branch information
radekdoulik committed Nov 5, 2014
1 parent 1ea6921 commit d8aad87
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mcs/tools/linker/Descriptors/System.xml
Expand Up @@ -13,6 +13,7 @@
<type fullname="System.Net.SocketAddress" />
<type fullname="System.Net.Sockets.LingerOption" />
<type fullname="System.Net.Sockets.Socket" />
<type fullname="System.Net.Sockets.MulticastOption" preserve="fields" />
<type fullname="System.Net.Sockets.Socket/SocketAsyncResult" preserve="fields" />
<type fullname="System.Net.Sockets.SocketException" />
</assembly>
Expand Down

0 comments on commit d8aad87

Please sign in to comment.