From owner-freebsd-current@freebsd.org Sun Nov 25 12:52:22 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2FDDE1152E93; Sun, 25 Nov 2018 12:52:22 +0000 (UTC) (envelope-from theraven@FreeBSD.org) Received: from theravensnest.org (theravensnest.org [46.226.110.62]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "theravensnest.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9BE1E8367B; Sun, 25 Nov 2018 12:52:21 +0000 (UTC) (envelope-from theraven@FreeBSD.org) Received: from [192.168.1.65] (host81-153-41-47.range81-153.btcentralplus.com [81.153.41.47]) (authenticated bits=0) by theravensnest.org (8.15.2/8.15.2) with ESMTPSA id wAPCq9a8005906 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sun, 25 Nov 2018 12:52:10 GMT (envelope-from theraven@FreeBSD.org) X-Authentication-Warning: mail: Host host81-153-41-47.range81-153.btcentralplus.com [81.153.41.47] claimed to be [192.168.1.65] Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.1 \(3445.101.1\)) Subject: Re: GNU binutils 2.17.50 retirement planning From: David Chisnall In-Reply-To: Date: Sun, 25 Nov 2018 12:52:08 +0000 Cc: "freebsd-toolchain@FreeBSD.org" , FreeBSD Current Content-Transfer-Encoding: quoted-printable Message-Id: <42FDE8FB-67DF-4609-B5B7-988D93727DDA@FreeBSD.org> References: To: Ed Maste X-Mailer: Apple Mail (2.3445.101.1) X-Rspamd-Queue-Id: 9BE1E8367B X-Spamd-Result: default: False [1.79 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_SPAM_LONG(0.86)[0.859,0]; NEURAL_SPAM_SHORT(0.07)[0.066,0]; NEURAL_SPAM_MEDIUM(0.87)[0.867,0]; ASN(0.00)[asn:29169, ipnet:46.226.108.0/22, country:FR] X-Rspamd-Server: mx1.freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Nov 2018 12:52:22 -0000 On 23 Nov 2018, at 16:23, Ed Maste wrote: >=20 > For some time we have been incrementally working to retire the use of > obsolete GNU Binutils 2.17.50 tools. At present we still install three > binutils by default: >=20 > as > ld.bfd > objdump We probably need to kill ld.bfd before 12.0. It predates ifunc and so = interprets anything with an ifunc as requiring a copy relocation. This = means that if you use it to link against any shared library (like, say, = libc.so.7 in FreeBSD 12.0) that uses ifuncs then it will insert a = relocation so that the ifunc resolver (which contains PC-relative = addresses of other functions) will be copied into the main binary. This = then causes your program to crash the first time anything calls memcpy, = in a very difficult-to-debug way (it jumps into a random bit of your = main binary, runs for a bit, and then dies). David