From owner-freebsd-toolchain@FreeBSD.ORG Fri Apr 3 21:10:13 2015 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id F0613EB3 for ; Fri, 3 Apr 2015 21:10:13 +0000 (UTC) Received: from mail-pa0-f41.google.com (mail-pa0-f41.google.com [209.85.220.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B840925F for ; Fri, 3 Apr 2015 21:10:13 +0000 (UTC) Received: by pabsx10 with SMTP id sx10so35387931pab.3 for ; Fri, 03 Apr 2015 14:10:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:mime-version:content-type:from :in-reply-to:date:cc:message-id:references:to; bh=/kVKAgz9LqMeMUjx1y3pkQjuDdS9LggPoX5wPXt1+MM=; b=jwkzUFVxN4+Sm1Yb1nhAPk0dVnKiFQEKcvG0MPzK1roD0zGQD+GSTh4LAeA8rD+VFs Ud46QN+m63T8uul9+/yLaSZYdogAEgHjKR5oHEDDmU0dmqfKboJza4XhEHFKN5VtGmN9 7er6nZGi3i9RuAp4j7RgNPfsZmLZyMk+3fKTQnn2jUG5rqw2l35u+NrUTdA0cLOn3DyQ z5aJ83lP648EcxUxOaAsmiSBUhbrd0Fswer6ZJTZVGsaCjbJsl9zvwu54lGrDdvZ6y8X w6K8R4wgDnILRTBvJ3LQVzUltEomVSZgfHo18vzAFo2g8vyj6xoMM/yy0wj9POmnYoV0 qnqQ== X-Gm-Message-State: ALoCoQnbA301cE0kk/2+oMm4AcNdBiT+2KtaABzCYNVq0Zjfi2U//8f8sTq9hI0r1Agx80DkkqMq X-Received: by 10.70.98.139 with SMTP id ei11mr7191740pdb.3.1428095412796; Fri, 03 Apr 2015 14:10:12 -0700 (PDT) Received: from lgwl-doulam.corp.netflix.com ([69.53.236.236]) by mx.google.com with ESMTPSA id fm3sm9008105pab.29.2015.04.03.14.10.11 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 03 Apr 2015 14:10:12 -0700 (PDT) Sender: Warner Losh Subject: Re: Failed to build rescue with gcc 4.9 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) Content-Type: multipart/signed; boundary="Apple-Mail=_EDE77C46-E36F-4072-8E7E-46327059403A"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Pgp-Agent: GPGMail 2.5b6 From: Warner Losh In-Reply-To: Date: Fri, 3 Apr 2015 15:10:09 -0600 Message-Id: <04452C2A-FB67-465B-AE33-44ED2109672E@bsdimp.com> References: <2D2191D4-DB6F-4889-9CA9-DFEE495D8302@bsdimp.com> To: Ed Maste X-Mailer: Apple Mail (2.2070.6) Cc: "freebsd-testing@freebsd.org" , FreeBSD Toolchain X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Apr 2015 21:10:14 -0000 --Apple-Mail=_EDE77C46-E36F-4072-8E7E-46327059403A Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Apr 3, 2015, at 2:39 PM, Ed Maste wrote: >=20 > On 3 April 2015 at 13:02, Warner Losh wrote: >> That shows that something in the list is needed. Likely only = crunchhide. >>=20 >> It doesn=E2=80=99t tell us why we need it, or when we started needing = it, or what >> other conditions we might need it. This information is critical to = document >> so we know when we can stop doing it in the future. I=E2=80=99m = extremely reluctant >> to commit this until we know these details. >=20 > Yes, it's crunchide. It was broken prior to r277259: >=20 > | crunchide: Correct 64-bit section header offset > | > | For 64-bit binaries the Elf_Ehdr e_shoff is at offset 40, not 44. > | Instead of using an incorrect hardcoded offset, let the compiler > | figure it out for us with offsetof(). > | > | Differential Revision: https://reviews.freebsd.org/D1543 >=20 > It's not completely clear to me why we did not encounter this before; > a comment before the erroneous write states: >=20 > /* > * update the offset of section header table in elf > * header if needed. > */ >=20 > so I presume something about the object file created by gcc 4.9 causes > this code to be executed, while builds using the in-tree compiler did > not. Ah Yes! I remember now! We should find the FreeBSD version at that date and either build it when we=E2=80=99re cross compiling, or rebuild it = when we=E2=80=99re bootstrapping. Thanks for finding this Ed. Warner --Apple-Mail=_EDE77C46-E36F-4072-8E7E-46327059403A Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJVHwGyAAoJEGwc0Sh9sBEAwQ4QALaZUoOfWFW9art2QZ5rDyfz qsI2bgoxrUanYky+17w4D1jLr5EAlagRyHfQcvwd1un1FejzpfsJXmluk7RUzjGv 678BI1jV2GN6jGrfEbAvvABG5B1Wn7qgduYTziIWFfT7DaJuOf1dNhVu3Pc3t7Qn 1Izerokpxqo3B1PQAsl6clrFW8GsBsgClpwgqQ97YhQZivJ/0B5fEA11YQPwqet7 cdKavwpBNMlcFmVwodfnEd+PxX0HZs4dDgPoM+n9uEGonHg9/tYrCYnFevf2x2RT u2FPDNSr7PO2RyFqAw6QwO6JQsHiJ1n6DajwX3v6X1GGCxwUYwDyDkdp+kYA3aG8 hI7ffoC3QWvwsnPKPtdaO3rdxxmkAQaRt72EzjOYbo1WYnqCjLSEEFmmZpjwJuus o3tyfQiBVVM6rFHG+tdJ6QiFqlzrklgnWbQXIbjpK2/CM8IeizBvwNlpZALVy8yi zT9KIt6SvWrZwu7W8KzKu2vdrxyPsUDXeFybhl09ofdAUnCS3UvSBlnzDPjZkKdh JfnC3JIyhx/XJTbTH5ZieBLq9wd+XdFmZhUDYli8ni+Hv7wD3UuHYo4ae+rOqTlu 7R/VVsn2V9Dh2BIqExcA0BvmISPS2QcEWTXcgrK1M69+YNVBtR7B2qkitJUHuDt6 2o6DIfeQ1tiIqQhrnjN/ =lgJJ -----END PGP SIGNATURE----- --Apple-Mail=_EDE77C46-E36F-4072-8E7E-46327059403A--