From eb2e80c2bde6fe8981c5a734492e2288f84a5c64 Mon Sep 17 00:00:00 2001 From: christos Date: Fri, 30 Dec 2022 02:05:38 +0000 Subject: [PATCH] mention binutils hack --- doc/HACKS | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/doc/HACKS b/doc/HACKS index fb5ed8dad7e2..cc1d1e7e61df 100644 --- a/doc/HACKS +++ b/doc/HACKS @@ -1,4 +1,4 @@ -# $NetBSD: HACKS,v 1.232 2022/12/04 22:35:15 jakllsch Exp $ +# $NetBSD: HACKS,v 1.233 2022/12/30 02:05:38 christos Exp $ # # This file is intended to document workarounds for currently unsolved # (mostly) compiler bugs. @@ -1072,3 +1072,17 @@ descr clang 13.0.0 miscompiles copy{in,out}() with -O[12]. As a result, kernel cannot execute /sbin/init. kcah + +hack Clamp max-page-size in ld to 4K when using relro to avoid 2M binary + bloat +cdate Thu Dec 29 21:02:43 EST 2022 +who christos +port x86, aarch64 +file share/mk/bsd.sys.mk: 1.309 +pr 57147 +descr + binutils 2.38+ fix for + https://sourceware.org/bugzilla/show_bug.cgi?id=28824 + results in a 2M binary bloat when using relro because of the relro + segment alignment. There is no upstream fix yet. +kcah