Received: by 2002:a25:2c96:0:0:0:0:0 with SMTP id s144csp660553ybs; Sun, 24 May 2020 17:24:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwbXgSFNl4r1zsTMtXnYnSbjdfDcN9raQwjy+nkOwpv/1lSrU0uwLiVIsCuveXnMTJgn+Wf X-Received: by 2002:a05:6402:1bc1:: with SMTP id ch1mr13251342edb.90.1590366272620; Sun, 24 May 2020 17:24:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590366272; cv=none; d=google.com; s=arc-20160816; b=WY7/MQwuwu/9vmu2pxQ4DiA9zipNcmtsiT9nGsS17TAH8sGUe+EqnlK8SwMmBY2naC tmcuZ5eW4LRNAOTPjOitJEUgA95+z8HsTASX0RfGTFtOz5T+bzXxeb07/3jKey+nMJ3o 2LAKb+FnKVdCz6HdO7G99FvZZMqAFg1XwJLV6pF7xkBQBuk6rkaiufsPVy/64dSIiECs XaAzwrMCPjLji4Xsf3YN2I31OD4dcuSfH+0YVnBLWzusJA9dPcKKAZ6V45LoOVg5613s ooe92Yp4MrUPU1ML/EOI62MBzP+bQcYz2zXTUdpVvaB0MgIUPESOfIVgyisrVPyON5+5 QJyw== 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=nx8OHjNfdF4RbJrElp/4RxNwoLrVNtVMClUKyIlLrTs=; b=mnrEjR2D1Typa1aFvNVjq0A0cFSYZLKHP1XVhHzPzeYbpqres/jGIPz5aIpHZbHbe/ kS/o3HpoeMZlnffFFb7Ti75FQTSdIvRPmeEGVb24zlJql7QlqZUB0HOGGDvC0BTt62FW N1qvkFI6t1EmLmU/nhPOi17DMV5xInOryXGqb4HZrqCterCZj75iRlHdNpv31/QQBCpL 6R21OKyrzXtSb9p1S9uAPOqPUdTFCv2W83OQcdtvQA6ooSpS10paY03jgeMfJPGptkl5 +AxxgJ4K+FXOMQsSzBtQWn7KVrxXuCbt1YgtlEay9hM9N+4nyNnjeoOmj217pHK+x8EE zpvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=PN+Dr78Q; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l13si8372958edw.21.2020.05.24.17.24.07; Sun, 24 May 2020 17:24:32 -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=@gmail.com header.s=20161025 header.b=PN+Dr78Q; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388462AbgEXWsl (ORCPT + 99 others); Sun, 24 May 2020 18:48:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387863AbgEXWsl (ORCPT ); Sun, 24 May 2020 18:48:41 -0400 Received: from mail-il1-x143.google.com (mail-il1-x143.google.com [IPv6:2607:f8b0:4864:20::143]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D5C0C061A0E for ; Sun, 24 May 2020 15:48:40 -0700 (PDT) Received: by mail-il1-x143.google.com with SMTP id b15so15839424ilq.12 for ; Sun, 24 May 2020 15:48:40 -0700 (PDT) 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=nx8OHjNfdF4RbJrElp/4RxNwoLrVNtVMClUKyIlLrTs=; b=PN+Dr78QvRGtXGo6D1dnPRk0vPE+zIl21kgD8OSlvGhPTB04QbzyTmLGv0xTQZspnS EYBuckOyRsszvG+4/bLAa2Lv/usK33h8SAUnWdu3fJnujjc4QuRW1ytssydO4ifZXEAr ijdwIqjWEkG8MT95+R1x8ZOmLbrN15EbmpuSId8aAW1CPJN85kPx35dLqk8kTkPaHp3d 1sEJXw3goL9CuwdZOZBi7LgpVKvMbZsO1JmMvHBMRM+//rcfpqSm9bBPGcO+qrcfWwAV 1H/L/g43CUbW2IU+lqSSbszKR12bUlpU3WnYrlfQcLZRiYXXD/SQ+6qzDPzTwd+dLAUo oojQ== 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=nx8OHjNfdF4RbJrElp/4RxNwoLrVNtVMClUKyIlLrTs=; b=pIHCAiYqhbl/tXLMAcbFIhCvBF2cLKR8cACy6iNfzZx9XsS1uebHQNYMROQf0oCP6h QpuQt0MzNRHqJ7qisYO7wmoyNnrgEjBGiCBmhOsPDpd+wNANSZEsq536zBvnqcPE/RvH bPNPG7B+qJDntfqsaHY4f4qxldmXUVlpw/FW9vjBPvMmL2LHhOB1D0ukjQvWwy/t3YsF /f/6Y3R9sNAtQO8xTtmeJYvAJHeZz6gVOfxWD6KcZWWgzup2RfrPFGRJDeZF9/s8pBZi DENAYoRhIwNRb9nfSaIu5LNHQbOIGgkAmhgRaxQXC9o2khQnatMYSRbc80SaTe+fT6Bo uOsQ== X-Gm-Message-State: AOAM532AzilrLmhn6BmSddTAYs3icoyNe7RZQAtuld7TnJihMWE9Uvku A1pb5zIgcNAk6Ua0T6+5QGL1ZBNX9neHN9Przg== X-Received: by 2002:a05:6e02:13ab:: with SMTP id h11mr21007822ilo.191.1590360518989; Sun, 24 May 2020 15:48:38 -0700 (PDT) MIME-Version: 1.0 References: <20200524212816.243139-2-nivedita@alum.mit.edu> In-Reply-To: <20200524212816.243139-2-nivedita@alum.mit.edu> From: Brian Gerst Date: Sun, 24 May 2020 18:48:27 -0400 Message-ID: Subject: Re: [PATCH 1/4] x86/boot: Add .text.startup to setup.ld To: Arvind Sankar Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , "the arch/x86 maintainers" , Nick Desaulniers , Fangrui Song , Dmitry Golovin , clang-built-linux , Ard Biesheuvel , Masahiro Yamada , Daniel Kiper , Linux Kernel Mailing List 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, May 24, 2020 at 5:32 PM Arvind Sankar wrote: > > gcc puts the main function into .text.startup when compiled with -Os (or > -O2). This results in arch/x86/boot/main.c having a .text.startup > section which is currently not included explicitly in the linker script > setup.ld in the same directory. If the compiler is making assumptions based on the function name "main" wouldn't it be simpler just to rename the function? -- Brian Gerst