Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1246385pxf; Fri, 9 Apr 2021 03:56:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz1dLH2Ib0cCTrPrqBeoiR4tEqelAR6KGzPcsUP5FY4dOfrgQq4cneF/XdFRCtF8lFYBDUl X-Received: by 2002:a62:8302:0:b029:21a:6de0:b6a7 with SMTP id h2-20020a6283020000b029021a6de0b6a7mr11624314pfe.35.1617965764574; Fri, 09 Apr 2021 03:56:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617965764; cv=none; d=google.com; s=arc-20160816; b=fNWOWq2kZ2JJ0AofZT2v98mYqhjPzFDgIcimSPhfxN4H7/aU085zTV+i/essw/xCnJ FObA63yyks2n5s5DlwpdRHUGGOUuhW7C4bKoTkI+2XxbgDTNEhUqBz0/RAfNHa9fNK4J R+jzr1/hO3ET5QPSjV8cZxmUA0IljkL/csvUQGLfrh5Wat1AP67H4m1wTBUQHU0Ot5VV IUANJFaltdRNg5gAtTrfReCKNBAmqrbxZ8eaRYyYqPQ4SV2TWGgefYuyNw/KZFy3YLrh JTalqdlJ5vLuT6xR+pE0sTO9ujQyfZJ3Z6g4kPwJ/pNwvCH1SeIxKv/EMKKaTkBYMuoO Ch+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from:dkim-signature; bh=iRvExO2u4w6AmWe5Y0tb/mvT3i84fkN17wDJxZJ/hLs=; b=XtA3La/afGEmcoQs/bZ9DfkdO4dnQyRHp8xVhx2EzsApmNBDxcLtAHjnew8ddjH1HG kBgmT3x/3cn5JWtSiznMChqB6fb9gOWP/9IN/fP5t04qtIAMAJb6gPs64F5CJtIUaNrH QjkeKruuOrHLwQo5NtZ2Rs2J7NuoBwSLXA0FaHRvUb5nA0FFt3XOLNdSTPEUon+Te46K 2Y2JmegFvOXEYKfp2uI19NFuMXsGOekzNjNoWcP+cUgzeW7LPdTZee6zHn+NDe7V2TQI zSRDuRlOdzZJfxH4DlQ5JUGK+yYgd0qy94lrTjPGvPc1dhhDYziMTdjSak4Wvpske8CC G7bw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Ip3vCyi0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g16si2629179pgi.145.2021.04.09.03.55.51; Fri, 09 Apr 2021 03:56:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Ip3vCyi0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233532AbhDIKz3 (ORCPT + 99 others); Fri, 9 Apr 2021 06:55:29 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:49558 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232087AbhDIKz2 (ORCPT ); Fri, 9 Apr 2021 06:55:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1617965715; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=iRvExO2u4w6AmWe5Y0tb/mvT3i84fkN17wDJxZJ/hLs=; b=Ip3vCyi0qopT6pWKemIRJEmL3wLyYWEAPHo6rW0QZp1cOshj60vCAx765fdCow0SBjFyze Zbn+9G/4XV/xqwD44mnyjuX1r19IeXxy3EJ+8x/Rravhf7yvzfBFpf/d9orN3AsSjsocLJ XwV+E1AKMozSjOWtOpRt/WQQ5YuviYA= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-320-NBpmevU0PbymDv5HEKTygA-1; Fri, 09 Apr 2021 06:55:12 -0400 X-MC-Unique: NBpmevU0PbymDv5HEKTygA-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id A2BBD9126D; Fri, 9 Apr 2021 10:55:11 +0000 (UTC) Received: from oldenburg.str.redhat.com (ovpn-112-70.ams2.redhat.com [10.36.112.70]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C1C5219C95; Fri, 9 Apr 2021 10:55:09 +0000 (UTC) From: Florian Weimer To: Ard Biesheuvel Cc: Peter Zijlstra , linux-toolchains@vger.kernel.org, Linux Kernel Mailing List , Josh Poimboeuf , Jason Baron , "Steven Rostedt (VMware)" Subject: Re: static_branch/jump_label vs branch merging References: Date: Fri, 09 Apr 2021 12:55:18 +0200 In-Reply-To: (Ard Biesheuvel's message of "Fri, 9 Apr 2021 11:57:22 +0200") Message-ID: <877dlbzq09.fsf@oldenburg.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Ard Biesheuvel: > Wouldn't that require the compiler to interpret the contents of the > asm() block? Yes and no. It would require proper toolchain support, so in this case a new ELF relocation type, with compiler, assembler, and linker support to generate those relocations and process them. As far as I understand it, the kernel doesn't do things this way. Thanks, Florian