From owner-freebsd-ppc@freebsd.org Thu Jun 27 19:53:27 2019 Return-Path: Delivered-To: freebsd-ppc@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 B54FE15CBBDB for ; Thu, 27 Jun 2019 19:53:27 +0000 (UTC) (envelope-from chmeeedalf@gmail.com) Received: from mail-io1-xd2a.google.com (mail-io1-xd2a.google.com [IPv6:2607:f8b0:4864:20::d2a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id BDFC16D603 for ; Thu, 27 Jun 2019 19:53:26 +0000 (UTC) (envelope-from chmeeedalf@gmail.com) Received: by mail-io1-xd2a.google.com with SMTP id s7so7393442iob.11 for ; Thu, 27 Jun 2019 12:53:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=d1AxX5fyGsU2s5An0csdFx4SXfYnoLvy1D044lM/z58=; b=vElQ6Y9P8aaq889NQXTTm78BI96vz+DIs/N0wg3K51esjh8RddlQvAVUm6WEaT8FaB YDcPhTzZZmnGVrBFjXj01O/vCbReuvgTbM8hv2XJB9hcBqB6PwEF7KjmEKM3W2wFTwMJ 0AvznGsj4KDXiMwgpOnFmNFoyKhNFQb+SZN/0ZfcKifxCAnJ+X2i0cmNEAq4M89F8cou rsdkico+mgRXDIHq/nWfD/p2Q1a8PI8m/xqwiukkkrEoHLohfTD+ErO1Cj2ShgSzekjh Zj/76i8nd/CH1rjPDASAlqdLi9YF5t2Nsx+P3nwYSjk67pgKSjXXlEDGSsziCf8UIr6U Qq8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=d1AxX5fyGsU2s5An0csdFx4SXfYnoLvy1D044lM/z58=; b=BeN2fqRt8HP4N7KrcYIVaK7Fe/JEeIKGzn28A0/6Wjp+rK3OfIqmypHW88ChdRGxAN iUcUzXqLrMSCT2ofP6SdMQkyC0kX7zdIOBzIVRR1i7IY4rIKDxMGloOoyX/HHHCV0hAK 0s+UWAn6yB2So8cvNtIwMg89OI1Ks+u6oDlhNKpQ6EyGVWY8qQPQOU9RQhMLBc2g5KgS hfHxkp0DoALFv6Wi9DOfoD1/6f5hUwHKGNBafhI9Vp4tNi+YqS3x84TKjb6dDaH73AaN 5k3udHemcldfTeIDUXw/VgpeauYSj5oiWz4cyKbV9GV/mzaHGoNRjpyfx1XxPTK0Z7Cy uO3Q== X-Gm-Message-State: APjAAAUiU47FnnFI0BiwEME9LUlpXqbpnRF9mpnXWoZGi/R+vaAgOL0i A49EyBBDu+TbNgpk+BS1MsQ= X-Google-Smtp-Source: APXvYqzGgHGy5dyd0kZdVwe1BDQpmyLBDfL2rvv4ofwj851VLWlUPjzIbH13gaXPLf0fRMTZFyI1gA== X-Received: by 2002:a05:6638:63a:: with SMTP id h26mr6707363jar.92.1561665205772; Thu, 27 Jun 2019 12:53:25 -0700 (PDT) Received: from titan.knownspace (173-25-245-129.client.mchsi.com. [173.25.245.129]) by smtp.gmail.com with ESMTPSA id c14sm132380ioa.22.2019.06.27.12.53.24 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 27 Jun 2019 12:53:25 -0700 (PDT) Sender: Justin Hibbits Date: Thu, 27 Jun 2019 14:53:12 -0500 From: Justin Hibbits To: Mark Millard Cc: FreeBSD PowerPC ML Subject: Re: FreeBSD/powerpc and FreeBSD/powerpcspe toolchain update Message-ID: <20190627145312.5abd82e7@titan.knownspace> In-Reply-To: References: X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; powerpc64-portbld-freebsd13.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: BDFC16D603 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=vElQ6Y9P; spf=pass (mx1.freebsd.org: domain of chmeeedalf@gmail.com designates 2607:f8b0:4864:20::d2a as permitted sender) smtp.mailfrom=chmeeedalf@gmail.com X-Spamd-Result: default: False [-6.11 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; FORGED_SENDER(0.30)[jrh29@alumni.cwru.edu,chmeeedalf@gmail.com]; FREEMAIL_TO(0.00)[yahoo.com]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[jrh29@alumni.cwru.edu,chmeeedalf@gmail.com]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_SHORT(-1.00)[-0.997,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-ppc@freebsd.org]; DMARC_NA(0.00)[cwru.edu]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[a.2.d.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; IP_SCORE(-2.90)[ip: (-8.98), ipnet: 2607:f8b0::/32(-3.13), asn: 15169(-2.33), country: US(-0.06)] X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Jun 2019 19:53:27 -0000 On Thu, 27 Jun 2019 12:03:05 -0700 Mark Millard wrote: > On 2019-Jun-24, at 19:40, Justin Hibbits > wrote: > > > As of r349351 32-bit powerpc toolchains need to be rebuilt as part > > of buildworld, in order to take advantage of the new Secure > > Procedure Linkage Table (Secure-PLT) format. This can be done by > > passing "WITHOUT_SYSTEM_TOOLCHAIN=" on the 'make buildworld' > > command line. > > > > Cross-building should work fine with no changes, as that already > > builds a new toolchain. If building with an external toolchain, > > such as gcc8, add 'CFLAGS+= -msecure-plt' to /etc/src.conf to > > ensure the new PLT is used, otherwise it will default to BSS-PLT, > > which is fully compatible, but not as secure. There is breakage > > intended at all, so please let me know if there are any problems. > > My attempt to amd64->powerpc (32-bit) cross build from/to head > -r349444 via system clang and lld got the following. This may not be > a recent change. It has been a long time since I tried lld, instead > using devel/powerpc64-binutils. ( devel/powerpc64-binutils now fails > where it used to work, but I sent a separate note out about that. ) > > --- agp.ko.full --- > ld: agp.kld(.text+0x37a4): R_PPC_PLTREL24 reloc against local symbol > agp.kld: could not read symbols: Bad value > *** [agp.ko.full] Error code 1 > Hi Mark, Can you determine what symbol has that relocation? I don't see that error when building natively, or cross-building with base toolchain, so there's very likely a change in binutils between 2.17 and now that's leading to this failure. > > === > Mark Millard > marklmi at yahoo.com > ( dsl-only.net went > away in early 2018-Mar) > - Justin