Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4805424ybl; Mon, 13 Jan 2020 21:25:09 -0800 (PST) X-Google-Smtp-Source: APXvYqzEXF9tpbvbGBWJlIt7BElgmTStUp5vjsc7AKB3SZC7zcuih/KATpFfSBNrgbnGpwNzDYG5 X-Received: by 2002:aca:db43:: with SMTP id s64mr14739872oig.144.1578979509732; Mon, 13 Jan 2020 21:25:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578979509; cv=none; d=google.com; s=arc-20160816; b=e73RdDJuoI9UKL6EbnxVwIlo3PL7OUxUGKzJE2qK8S50dtpw1cPyQykDDI9lGyflp/ OYLXQARCS+LHtxvDClPxdrbejfFSSjXEPGDLgm5LPBxhfo7N4HkowBx2p9HP2C2wlaAb JQpEdLhnk9e6bpY6IHG3VXZRwjdplP7vkxeKBVuy8NHQTyKzSc4vz5n88cq6tdRQsfXr fEnVnOqrfr2d+j8uupcY6K+z82ieoBqULBfnMNASoflzlAnFpfVxtgYbSmVBfw/e1rpu D439ZZOf3j0Y2TrJ7c6ThI5fejFCMdAS0Pmwcg/bFFBNuxrLLE1/EYedMGrudJHnGGck a+2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=xOe8cEwY/+ggWSrDf4teIOpCv6NdYHvbvkF1XKTEocs=; b=fVAQNokyxFs2fZMo+FI30SeVfoY2ZbX5zOQ3Y+YXjoIwfA8KXG9hwLgCqtrdffpyln 74YvFCWI+xK9ka19TDUZeDl5+0fD4YkSQH9QUGiJBAzzfvzTRPCvrtagbjhDVvfVYuCc DD1vVmZIKdOiA6N4+eUeuGew1iF57TsbIMx75FtW0yB3bhh+CqAIfHEqXyJFUOpbHc7i i3YsOQY/4JK/eFg7rboLbtynWnq5XttkYdJX4EvBKrXztdo01/wnPdtpBPW12Lw3qrwt YF5/00YixDqbW+DZ4c41ACf5ctybpZdujcUvd8Uy0PoDOL6daalXL0bdX+LAQzRESMRI DQ3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LOtEzdzO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o66si6795026oig.193.2020.01.13.21.24.57; Mon, 13 Jan 2020 21:25:09 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LOtEzdzO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727072AbgANFYE (ORCPT + 99 others); Tue, 14 Jan 2020 00:24:04 -0500 Received: from mail-lj1-f194.google.com ([209.85.208.194]:40233 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725842AbgANFYD (ORCPT ); Tue, 14 Jan 2020 00:24:03 -0500 Received: by mail-lj1-f194.google.com with SMTP id u1so12810929ljk.7; Mon, 13 Jan 2020 21:24:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=xOe8cEwY/+ggWSrDf4teIOpCv6NdYHvbvkF1XKTEocs=; b=LOtEzdzO4P0gGkSt2/IoHR9VPfhIc06dybg249hC4fdFHKqGeaO8YxYjcto8GZcco6 HX2osGkURrzyuWIDMmPjKH6D5ziJteWrS8nP6g8cIpsmxO3g6xKeyta0lNcLNXqImGgD C61+M2tHogtE/Tl8QJKImmlO9aOGwRqlrM74DKpVkzILRUlW2Xd3NWS6eUv1BHk1+oxv 6Nz/uoqwbBG4FLBT0+T4Qdp3BXsK2hZReGH8l838Wpi3S4hKpZI+O6PN3yd+BgnhdqGt 70U3ZQqzxQXRssZfvaI+neH8/KYxh+qMbdUQS85U95UhbJwfqdQbTlh4qpLZ9gE8FNO/ Mnog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=xOe8cEwY/+ggWSrDf4teIOpCv6NdYHvbvkF1XKTEocs=; b=Q8eDO77pETAyZ5dNyBs0evbD+ZGsOWpADSCg4uQMl3tZNOfdlDB2ChnXbEMNwSLUW5 xLn6M8JqgrPNHD/4ScpbJKioGZzvJgSFXPfUOF2WrmG4/jSrG6CHwP1NG0I5v7LUG5XX VKwznSaY2cePVU8ykwSzZ1wQF3+m3Z2OV+RFBk6kkfb2UMs1Oz42PkMRH4ISK+GVxfF2 9+ZdevaC+KKBUA4B/BC71fgNAfTr+WkKyVplubxUxMzkPH4Keku/rnJF8I59Dsi0ZYD6 SDWNZLNyzu/Cil2rVL2kePYJ50+RXh+hfnCDswQYBvf02BK0HDTeEB2tSGuNXXAimFfS Uxhw== X-Gm-Message-State: APjAAAXl43d0NEDHzMjnkgviIAiptTfUABSRdQ1popCKxkG5D1htywna /hq/xL0ztfyVqQkhocJJJOe2l+MgucIXapAU8ZI= X-Received: by 2002:a2e:884d:: with SMTP id z13mr13271564ljj.116.1578979441504; Mon, 13 Jan 2020 21:24:01 -0800 (PST) MIME-Version: 1.0 References: <20191018105657.4584ec67@canb.auug.org.au> <20191028110257.6d6dba6e@canb.auug.org.au> In-Reply-To: From: Alexei Starovoitov Date: Mon, 13 Jan 2020 21:23:50 -0800 Message-ID: Subject: Re: linux-next: build warning after merge of the bpf-next tree To: Zong Li Cc: Alexandre Ghiti , Palmer Dabbelt , Stephen Rothwell , Daniel Borkmann , Alexei Starovoitov , Network Development , Linux-Next Mailing List , "linux-kernel@vger.kernel.org List" , ppc-dev , linux-arm-kernel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jan 12, 2020 at 8:33 PM Zong Li wrote: > > I'm not quite familiar with btf, so I have no idea why there are two > weak symbols be added in 8580ac9404f6 ("bpf: Process in-kernel BTF") I can explain what these weak symbols are for, but that won't change the fact that compiler or linker are buggy. The weak symbols should work in all cases and compiler should pick correct relocation. In this case it sounds that compiler picked relative relocation and failed to reach zero from that address.