From 450189162e15c813713b5c3a5208bdb6380c17f8 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Thu, 3 Dec 2020 13:40:02 +0100 Subject: ringlogger: hook into global panic writer This is a grotesque hack, and hopefully upstream Go will provide a nicer way of doing this, but already it seems quite adept at catching panics. See https://github.com/golang/go/issues/42888 for more info. This requires us to rewrite the ringlogger path to avoid all allocations. Signed-off-by: Jason A. Donenfeld --- go-patches/0003-cmd-link-ignore-SEH-marking-on-PE-objects.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'go-patches/0003-cmd-link-ignore-SEH-marking-on-PE-objects.patch') diff --git a/go-patches/0003-cmd-link-ignore-SEH-marking-on-PE-objects.patch b/go-patches/0003-cmd-link-ignore-SEH-marking-on-PE-objects.patch index 02d5ff31..e5c86f88 100644 --- a/go-patches/0003-cmd-link-ignore-SEH-marking-on-PE-objects.patch +++ b/go-patches/0003-cmd-link-ignore-SEH-marking-on-PE-objects.patch @@ -1,7 +1,7 @@ From e8142ab5e3b3a513683a8e3792e6197644547981 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Sun, 8 Nov 2020 03:20:36 +0100 -Subject: [PATCH 03/13] cmd/link: ignore SEH marking on PE objects +Subject: [PATCH 03/14] cmd/link: ignore SEH marking on PE objects Microsoft's linker looks at whether all input objects have an empty section called @feat.00. If all of them do, then it enables SEH; -- cgit v1.2.3-59-g8ed1b