From owner-svn-src-head@freebsd.org Tue Nov 28 16:34:33 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6C7E5DBBFCD; Tue, 28 Nov 2017 16:34:33 +0000 (UTC) (envelope-from chmeeedalf@gmail.com) Received: from mail-it0-x243.google.com (mail-it0-x243.google.com [IPv6:2607:f8b0:4001:c0b::243]) (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 367DA6CF85; Tue, 28 Nov 2017 16:34:33 +0000 (UTC) (envelope-from chmeeedalf@gmail.com) Received: by mail-it0-x243.google.com with SMTP id 68so401165ite.4; Tue, 28 Nov 2017 08:34:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=CCKUIXHv1SIsN2wNddZkK9mlWMPhn52ksfL1UEyfZBQ=; b=vHIgIFqys8KBYnIkGBM/u/bkNt7fUBGj5f3os5OCEr3dGQx1fFHBfhnLIzoV/Oy8ie HxfepwSRK040eFEShgCfhfqVI1HfYdwN2CYzIfYHpR5bma8FaTx7qfr/T3TEryXNrOSv +smdgIEdWRiz0Pat7IlvojAwjSYAXBICAcBzxY2rRVOuNxz9s2323P7J0qc65sqN1ABU IX0RHw1Uc9Z3LLJFceuf9PF4Tq3JBvr3Lsl/+CxkNNvucBnYp9ubyBDGFpcLdhrwytoE vUP8Xv9rYJyB6CLDBcadDbIfrIrA8jloqU4cbtgyBxWEKEqFqAi3eRpfeWzq+E3d0h79 iFRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=CCKUIXHv1SIsN2wNddZkK9mlWMPhn52ksfL1UEyfZBQ=; b=cAAydjuSxs/uoT0WwQ2a/EtoE/W7PTUgUSKlKJDpYWMrLUwnfJPh5CGErLOKOz5EiK bUrXaqUyVHIcH4qBWvhiR+aGnWAypIG6r5Zng0CKfHulTOpAvT4Yeo7KB6uL0rY2zDhr lBm/5Ps5lqmwHAdn5QJBHFU9JJYHn68c6A8RC9gWPqERnsy9Tgkw7TANvx0a02QfKrCx 59b0Yb8JDP+HwsT420bY5z34w/zYXgqYgSBwz+Nyz2Ff1uSdmnhJn1i03gTNGTh5e8Ow UxaEP26eQCXn0r2+jAJr0o9EFTEpMjTvwg3ooDhDJMw8lWqCMWTot/QiHD60vWfNk9xR elGQ== X-Gm-Message-State: AJaThX68TT0CXebfqnyE2EL0ScpxJH6F4RI2O3lP5H8XHDVXQGAQXln+ UdEDJfn9prfLYMFR/Y6oIrx7n6i0dntiKU1N/rk= X-Google-Smtp-Source: AGs4zMa++GX5Fji+M5+FBhWTkegO8ypZ2tauEU5JEFTqEDiuVZsBFCj7ourY8Sfb86Dv27pVianjudbQ2Tb4Dq/1EPg= X-Received: by 10.36.83.137 with SMTP id n131mr3529113itb.82.1511886872266; Tue, 28 Nov 2017 08:34:32 -0800 (PST) MIME-Version: 1.0 Sender: chmeeedalf@gmail.com Received: by 10.79.78.207 with HTTP; Tue, 28 Nov 2017 08:34:31 -0800 (PST) In-Reply-To: References: <201711252145.vAPLjpV6051703@repo.freebsd.org> <5831ba86-742d-7019-e1c9-4b6563d2cdcc@freebsd.org> From: Justin Hibbits Date: Tue, 28 Nov 2017 10:34:31 -0600 X-Google-Sender-Auth: mPP3kgmNrlJcdqjhdNFob7Q7Qpg Message-ID: Subject: Re: svn commit: r326203 - head/sys/conf To: Nathan Whitehorn Cc: src-committers , "svn-src-all@freebsd.org" , "svn-src-head@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Nov 2017 16:34:33 -0000 On Tue, Nov 28, 2017 at 10:30 AM, Nathan Whitehorn wrote: > > > On 11/28/17 08:23, Justin Hibbits wrote: >> >> On Tue, Nov 28, 2017 at 10:13 AM, Nathan Whitehorn >> wrote: >>> >>> >>> On 11/28/17 07:27, Justin Hibbits wrote: >>>> >>>> On Sat, Nov 25, 2017 at 3:45 PM, Nathan Whitehorn >>>> wrote: >>>>> >>>>> Author: nwhitehorn >>>>> Date: Sat Nov 25 21:45:51 2017 >>>>> New Revision: 326203 >>>>> URL: https://svnweb.freebsd.org/changeset/base/326203 >>>>> >>>>> Log: >>>>> Avoid emitting a PT_INTERP section for powerpc64 kernels and >>>>> arrange >>>>> for >>>>> the first instruction to be at the start of the text segment. This >>>>> allows >>>>> the kernel to be booted correctly by stock kexec-lite. >>>>> >>>>> MFC after: 2 weeks >>>>> >>>>> Modified: >>>>> head/sys/conf/ldscript.powerpc64 >>>>> >>>>> Modified: head/sys/conf/ldscript.powerpc64 >>>>> >>>>> >>>>> ============================================================================== >>>>> --- head/sys/conf/ldscript.powerpc64 Sat Nov 25 21:44:23 2017 >>>>> (r326202) >>>>> +++ head/sys/conf/ldscript.powerpc64 Sat Nov 25 21:45:51 2017 >>>>> (r326203) >>>>> @@ -10,7 +10,7 @@ SECTIONS >>>>> { >>>>> /* Read-only sections, merged into text segment: */ >>>>> >>>>> - . = kernbase + SIZEOF_HEADERS; >>>>> + . = kernbase; >>>>> PROVIDE (begin = . - SIZEOF_HEADERS); >>>>> >>>>> .text : >>>>> @@ -24,7 +24,10 @@ SECTIONS >>>>> _etext = .; >>>>> PROVIDE (etext = .); >>>>> >>>>> - .interp : { *(.interp) } >>>>> + /* Do not emit PT_INTERP section, which confuses some loaders >>>>> (kexec-lite) */ >>>>> + .interpX : { *(.interp) } : NONE >>>>> + /DISCARD/ : { *(.interp) } >>>>> + >>>>> .hash : { *(.hash) } >>>>> .dynsym : { *(.dynsym) } >>>>> .dynstr : { *(.dynstr) } >>>>> >>>> This broke powerpc64 Book-E kernels. It now puts a 1MB blank space >>>> ahead of the kernel data (ELF header + 1MB - sizeof(header) of 0's), >>>> meaning that now the kernel needs to be loaded by uboot 1MB earlier in >>>> memory, rather than straight on the 64MB boundary as it has been. >>>> >>>> - Justin >>>> >>> How on Earth? It doesn't do that on my system. What binutils are you >>> using? >>> -Nathan >>> >> This is using base binutils (2.17.50...) I don't know why it's doing >> this, but readelf shows that file offset 0x0000000000100000 maps to >> 0xc000000000000000, and it goes from there. >> >> - Justin >> > > Bizarre. Why don't you just revert for now (I need to run) and I can figure > out what went wrong later? > -Nathan I reverted privately already. I doubt there are many/any other users of Book-E powerpc64, so I can wait it out for now. - Justin