{"action":"created","comment":{"url":"https://api.github.com/repos/dotnet/corefx/pulls/comments/74791229","id":74791229,"diff_hunk":"@@ -0,0 +1,36 @@\n+﻿// Licensed to the .NET Foundation under one or more agreements.\n+// The .NET Foundation licenses this file to you under the MIT license.\n+// See the LICENSE file in the project root for more information.\n+\n+using Microsoft.Win32.SafeHandles;\n+using System.IO;\n+using System.Reflection.PortableExecutable;\n+using Xunit;\n+\n+namespace System.Reflection.Metadata.Tests\n+{\n+    internal unsafe static class LoaderUtilities\n+    {\n+        public static void LoadPEAndValidate(byte[] peImage, Action<PEReader> validator)","path":"src/System.Reflection.Metadata/tests/TestUtilities/LoaderUtilities.cs","position":14,"original_position":14,"commit_id":"bea19fdf1eeb8a979281deaf6d4675804224dcf2","original_commit_id":"195faef2b015928b028f5902181c48d2d8552ecd","user":{"login":"jkotas","id":6668460,"avatar_url":"https://avatars.githubusercontent.com/u/6668460?v=3","gravatar_id":"","url":"https://api.github.com/users/jkotas","html_url":"https://github.com/jkotas","followers_url":"https://api.github.com/users/jkotas/followers","following_url":"https://api.github.com/users/jkotas/following{/other_user}","gists_url":"https://api.github.com/users/jkotas/gists{/gist_id}","starred_url":"https://api.github.com/users/jkotas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jkotas/subscriptions","organizations_url":"https://api.github.com/users/jkotas/orgs","repos_url":"https://api.github.com/users/jkotas/repos","events_url":"https://api.github.com/users/jkotas/events{/privacy}","received_events_url":"https://api.github.com/users/jkotas/received_events","type":"User","site_admin":false},"body":"It depends. In any case, relocations are not ever applied to IL-only images (the code for it is here: https://github.com/dotnet/coreclr/blob/922cace885bfe24c18508747346e23ff7dc40d6c/src/vm/peimagelayout.cpp#L604).","created_at":"2016-08-15T16:40:55Z","updated_at":"2016-08-15T16:40:55Z","html_url":"https://github.com/dotnet/corefx/pull/10768#discussion_r74791229","pull_request_url":"https://api.github.com/repos/dotnet/corefx/pulls/10768","_links":{"self":{"href":"https://api.github.com/repos/dotnet/corefx/pulls/comments/74791229"},"html":{"href":"https://github.com/dotnet/corefx/pull/10768#discussion_r74791229"},"pull_request":{"href":"https://api.github.com/repos/dotnet/corefx/pulls/10768"}}},"pull_request":{"url":"https://api.github.com/repos/dotnet/corefx/pulls/10768","id":81261180,"html_url":"https://github.com/dotnet/corefx/pull/10768","diff_url":"https://github.com/dotnet/corefx/pull/10768.diff","patch_url":"https://github.com/dotnet/corefx/pull/10768.patch","issue_url":"https://api.github.com/repos/dotnet/corefx/issues/10768","number":10768,"state":"open","locked":false,"title":"Implements support for reading loaded PE files","user":{"login":"tmat","id":41759,"avatar_url":"https://avatars.githubusercontent.com/u/41759?v=3","gravatar_id":"","url":"https://api.github.com/users/tmat","html_url":"https://github.com/tmat","followers_url":"https://api.github.com/users/tmat/followers","following_url":"https://api.github.com/users/tmat/following{/other_user}","gists_url":"https://api.github.com/users/tmat/gists{/gist_id}","starred_url":"https://api.github.com/users/tmat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmat/subscriptions","organizations_url":"https://api.github.com/users/tmat/orgs","repos_url":"https://api.github.com/users/tmat/repos","events_url":"https://api.github.com/users/tmat/events{/privacy}","received_events_url":"https://api.github.com/users/tmat/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-08-15T01:27:51Z","updated_at":"2016-08-15T16:40:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8a38c8e50978877e1e5ad78b8327537bf539b59f","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/dotnet/corefx/pulls/10768/commits","review_comments_url":"https://api.github.com/repos/dotnet/corefx/pulls/10768/comments","review_comment_url":"https://api.github.com/repos/dotnet/corefx/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dotnet/corefx/issues/10768/comments","statuses_url":"https://api.github.com/repos/dotnet/corefx/statuses/bea19fdf1eeb8a979281deaf6d4675804224dcf2","head":{"label":"tmat:LoadedPE","ref":"LoadedPE","sha":"bea19fdf1eeb8a979281deaf6d4675804224dcf2","user":{"login":"tmat","id":41759,"avatar_url":"https://avatars.githubusercontent.com/u/41759?v=3","gravatar_id":"","url":"https://api.github.com/users/tmat","html_url":"https://github.com/tmat","followers_url":"https://api.github.com/users/tmat/followers","following_url":"https://api.github.com/users/tmat/following{/other_user}","gists_url":"https://api.github.com/users/tmat/gists{/gist_id}","starred_url":"https://api.github.com/users/tmat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmat/subscriptions","organizations_url":"https://api.github.com/users/tmat/orgs","repos_url":"https://api.github.com/users/tmat/repos","events_url":"https://api.github.com/users/tmat/events{/privacy}","received_events_url":"https://api.github.com/users/tmat/received_events","type":"User","site_admin":false},"repo":{"id":33101159,"name":"corefx","full_name":"tmat/corefx","owner":{"login":"tmat","id":41759,"avatar_url":"https://avatars.githubusercontent.com/u/41759?v=3","gravatar_id":"","url":"https://api.github.com/users/tmat","html_url":"https://github.com/tmat","followers_url":"https://api.github.com/users/tmat/followers","following_url":"https://api.github.com/users/tmat/following{/other_user}","gists_url":"https://api.github.com/users/tmat/gists{/gist_id}","starred_url":"https://api.github.com/users/tmat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmat/subscriptions","organizations_url":"https://api.github.com/users/tmat/orgs","repos_url":"https://api.github.com/users/tmat/repos","events_url":"https://api.github.com/users/tmat/events{/privacy}","received_events_url":"https://api.github.com/users/tmat/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tmat/corefx","description":"This repo contains the .NET Core foundational libraries, called CoreFX. It includes classes for collections, file systems, console, XML, async and many others.","fork":true,"url":"https://api.github.com/repos/tmat/corefx","forks_url":"https://api.github.com/repos/tmat/corefx/forks","keys_url":"https://api.github.com/repos/tmat/corefx/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tmat/corefx/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tmat/corefx/teams","hooks_url":"https://api.github.com/repos/tmat/corefx/hooks","issue_events_url":"https://api.github.com/repos/tmat/corefx/issues/events{/number}","events_url":"https://api.github.com/repos/tmat/corefx/events","assignees_url":"https://api.github.com/repos/tmat/corefx/assignees{/user}","branches_url":"https://api.github.com/repos/tmat/corefx/branches{/branch}","tags_url":"https://api.github.com/repos/tmat/corefx/tags","blobs_url":"https://api.github.com/repos/tmat/corefx/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tmat/corefx/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tmat/corefx/git/refs{/sha}","trees_url":"https://api.github.com/repos/tmat/corefx/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tmat/corefx/statuses/{sha}","languages_url":"https://api.github.com/repos/tmat/corefx/languages","stargazers_url":"https://api.github.com/repos/tmat/corefx/stargazers","contributors_url":"https://api.github.com/repos/tmat/corefx/contributors","subscribers_url":"https://api.github.com/repos/tmat/corefx/subscribers","subscription_url":"https://api.github.com/repos/tmat/corefx/subscription","commits_url":"https://api.github.com/repos/tmat/corefx/commits{/sha}","git_commits_url":"https://api.github.com/repos/tmat/corefx/git/commits{/sha}","comments_url":"https://api.github.com/repos/tmat/corefx/comments{/number}","issue_comment_url":"https://api.github.com/repos/tmat/corefx/issues/comments{/number}","contents_url":"https://api.github.com/repos/tmat/corefx/contents/{+path}","compare_url":"https://api.github.com/repos/tmat/corefx/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tmat/corefx/merges","archive_url":"https://api.github.com/repos/tmat/corefx/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tmat/corefx/downloads","issues_url":"https://api.github.com/repos/tmat/corefx/issues{/number}","pulls_url":"https://api.github.com/repos/tmat/corefx/pulls{/number}","milestones_url":"https://api.github.com/repos/tmat/corefx/milestones{/number}","notifications_url":"https://api.github.com/repos/tmat/corefx/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tmat/corefx/labels{/name}","releases_url":"https://api.github.com/repos/tmat/corefx/releases{/id}","deployments_url":"https://api.github.com/repos/tmat/corefx/deployments","created_at":"2015-03-30T03:23:20Z","updated_at":"2016-02-09T00:35:08Z","pushed_at":"2016-08-15T01:27:27Z","git_url":"git://github.com/tmat/corefx.git","ssh_url":"git@github.com:tmat/corefx.git","clone_url":"https://github.com/tmat/corefx.git","svn_url":"https://github.com/tmat/corefx","homepage":"","size":80717,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"dotnet:master","ref":"master","sha":"e9a8a7d113ad3d18ac5aa85c5629defed47fd53d","user":{"login":"dotnet","id":9141961,"avatar_url":"https://avatars.githubusercontent.com/u/9141961?v=3","gravatar_id":"","url":"https://api.github.com/users/dotnet","html_url":"https://github.com/dotnet","followers_url":"https://api.github.com/users/dotnet/followers","following_url":"https://api.github.com/users/dotnet/following{/other_user}","gists_url":"https://api.github.com/users/dotnet/gists{/gist_id}","starred_url":"https://api.github.com/users/dotnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotnet/subscriptions","organizations_url":"https://api.github.com/users/dotnet/orgs","repos_url":"https://api.github.com/users/dotnet/repos","events_url":"https://api.github.com/users/dotnet/events{/privacy}","received_events_url":"https://api.github.com/users/dotnet/received_events","type":"Organization","site_admin":false},"repo":{"id":26295345,"name":"corefx","full_name":"dotnet/corefx","owner":{"login":"dotnet","id":9141961,"avatar_url":"https://avatars.githubusercontent.com/u/9141961?v=3","gravatar_id":"","url":"https://api.github.com/users/dotnet","html_url":"https://github.com/dotnet","followers_url":"https://api.github.com/users/dotnet/followers","following_url":"https://api.github.com/users/dotnet/following{/other_user}","gists_url":"https://api.github.com/users/dotnet/gists{/gist_id}","starred_url":"https://api.github.com/users/dotnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotnet/subscriptions","organizations_url":"https://api.github.com/users/dotnet/orgs","repos_url":"https://api.github.com/users/dotnet/repos","events_url":"https://api.github.com/users/dotnet/events{/privacy}","received_events_url":"https://api.github.com/users/dotnet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dotnet/corefx","description":"This repo contains the .NET Core foundational libraries, called CoreFX. It includes classes for collections, file systems, console, XML, async and many others.","fork":false,"url":"https://api.github.com/repos/dotnet/corefx","forks_url":"https://api.github.com/repos/dotnet/corefx/forks","keys_url":"https://api.github.com/repos/dotnet/corefx/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dotnet/corefx/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dotnet/corefx/teams","hooks_url":"https://api.github.com/repos/dotnet/corefx/hooks","issue_events_url":"https://api.github.com/repos/dotnet/corefx/issues/events{/number}","events_url":"https://api.github.com/repos/dotnet/corefx/events","assignees_url":"https://api.github.com/repos/dotnet/corefx/assignees{/user}","branches_url":"https://api.github.com/repos/dotnet/corefx/branches{/branch}","tags_url":"https://api.github.com/repos/dotnet/corefx/tags","blobs_url":"https://api.github.com/repos/dotnet/corefx/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dotnet/corefx/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dotnet/corefx/git/refs{/sha}","trees_url":"https://api.github.com/repos/dotnet/corefx/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dotnet/corefx/statuses/{sha}","languages_url":"https://api.github.com/repos/dotnet/corefx/languages","stargazers_url":"https://api.github.com/repos/dotnet/corefx/stargazers","contributors_url":"https://api.github.com/repos/dotnet/corefx/contributors","subscribers_url":"https://api.github.com/repos/dotnet/corefx/subscribers","subscription_url":"https://api.github.com/repos/dotnet/corefx/subscription","commits_url":"https://api.github.com/repos/dotnet/corefx/commits{/sha}","git_commits_url":"https://api.github.com/repos/dotnet/corefx/git/commits{/sha}","comments_url":"https://api.github.com/repos/dotnet/corefx/comments{/number}","issue_comment_url":"https://api.github.com/repos/dotnet/corefx/issues/comments{/number}","contents_url":"https://api.github.com/repos/dotnet/corefx/contents/{+path}","compare_url":"https://api.github.com/repos/dotnet/corefx/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dotnet/corefx/merges","archive_url":"https://api.github.com/repos/dotnet/corefx/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dotnet/corefx/downloads","issues_url":"https://api.github.com/repos/dotnet/corefx/issues{/number}","pulls_url":"https://api.github.com/repos/dotnet/corefx/pulls{/number}","milestones_url":"https://api.github.com/repos/dotnet/corefx/milestones{/number}","notifications_url":"https://api.github.com/repos/dotnet/corefx/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dotnet/corefx/labels{/name}","releases_url":"https://api.github.com/repos/dotnet/corefx/releases{/id}","deployments_url":"https://api.github.com/repos/dotnet/corefx/deployments","created_at":"2014-11-06T23:42:48Z","updated_at":"2016-08-15T15:41:37Z","pushed_at":"2016-08-15T16:37:51Z","git_url":"git://github.com/dotnet/corefx.git","ssh_url":"git@github.com:dotnet/corefx.git","clone_url":"https://github.com/dotnet/corefx.git","svn_url":"https://github.com/dotnet/corefx","homepage":"https://docs.microsoft.com/dotnet/","size":127398,"stargazers_count":10373,"watchers_count":10373,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2543,"mirror_url":null,"open_issues_count":1289,"forks":2543,"open_issues":1289,"watchers":10373,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dotnet/corefx/pulls/10768"},"html":{"href":"https://github.com/dotnet/corefx/pull/10768"},"issue":{"href":"https://api.github.com/repos/dotnet/corefx/issues/10768"},"comments":{"href":"https://api.github.com/repos/dotnet/corefx/issues/10768/comments"},"review_comments":{"href":"https://api.github.com/repos/dotnet/corefx/pulls/10768/comments"},"review_comment":{"href":"https://api.github.com/repos/dotnet/corefx/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dotnet/corefx/pulls/10768/commits"},"statuses":{"href":"https://api.github.com/repos/dotnet/corefx/statuses/bea19fdf1eeb8a979281deaf6d4675804224dcf2"}}}}
{"actor":{"display_login":"jkotas"}}