From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B15C5C4363D for ; Tue, 6 Oct 2020 23:53:47 +0000 (UTC) Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E9ECF20E65 for ; Tue, 6 Oct 2020 23:53:46 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=vt-edu.20150623.gappssmtp.com header.i=@vt-edu.20150623.gappssmtp.com header.b="zKC3JW55" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E9ECF20E65 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=vt.edu Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kernelnewbies-bounces@kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.94) (envelope-from ) id 1kPwln-0008O2-ST; Tue, 06 Oct 2020 19:53:23 -0400 Received: from mail-qk1-x743.google.com ([2607:f8b0:4864:20::743]) by shelob.surriel.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94) (envelope-from ) id 1kPwll-0008Nx-64 for kernelnewbies@kernelnewbies.org; Tue, 06 Oct 2020 19:53:21 -0400 Received: by mail-qk1-x743.google.com with SMTP id q63so635062qkf.3 for ; Tue, 06 Oct 2020 16:53:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vt-edu.20150623.gappssmtp.com; s=20150623; h=sender:from:to:cc:subject:in-reply-to:references:mime-version :content-transfer-encoding:date:message-id; bh=vZ4YPFCqkOVDm4BkzDhMcTDEBn1tkzj2q67N99lvMwA=; b=zKC3JW557QG7+Z6LSJVwP8TD9CnS/Ae/o3jwVCp2zcFEsCw5Zk5VggoerGqtTzeeOW W8eFFsOC1VXkzUInCcUWlWMnvMVqcD8v8TbtO638QsW6acyztJSvfaw6XiV29751EFp5 5EXSiR3DeJ1+eZvMUDtnJ12Jm2G5Gy360Gz6SENhikprGBjJxYifFKEvDVWNNNpQBAMb 3zonNbGudZgI5hP0tbK/gseZteTsdiznD4uQ3sf9UvbPx3Hu3Bxnh6iG2KUFdaw7l0lE vQWd3HGotQnVRAq2XzymCoLKb4mU0cAWIMS4MQ0fMi5WvyftopDbUszvt5GVItI9vGKk 4VXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:in-reply-to:references :mime-version:content-transfer-encoding:date:message-id; bh=vZ4YPFCqkOVDm4BkzDhMcTDEBn1tkzj2q67N99lvMwA=; b=jh0jEHMvPQvZqsR/ijnurjmX/TRxwfqXpPOCcqrI7aJANS2eIwjQASr9RxqEXSLjdc cYdGyEh2+XKhmhOLDQJiG+Xgpn4GJ53lgW2TUTfvoA/z+Nt+cfvla54HiY8X7KvKWiTX g5qOIG2tZAwOcKUNS7DKulAGMr/mvU9lm1FXQ6SvjgTpneItFaDOJ0Rv6VGPs4MQPNSF 6vjViWcvYU/YlxdAlBWu7yGmQjOP3lpKb+Y82SsE3qmftE/qUCyNUob1PWrtUeT1B0KQ vWRm3fefIp4/MS5/OcpUFGippV/vrxTny+IO4BgsZDye/f4fpkGVKty/Igz8N5ZogvJ7 gN5Q== X-Gm-Message-State: AOAM530QbzBRzRWEXbVJgtB0+vc54Q9Cvd5UVyN+K09cBnQrDwOKlEgF Pvr0lVZQyv3luY2iNKpkkZpCkQ== X-Google-Smtp-Source: ABdhPJyhtdpYz49JftqEOnyELKsqsejlmy/KxZsFtv41wSJlysXXu5IUJQAzQUGzEdPV2/RBg0sWFQ== X-Received: by 2002:a05:620a:1139:: with SMTP id p25mr299012qkk.189.1602028337950; Tue, 06 Oct 2020 16:52:17 -0700 (PDT) Received: from turing-police ([2601:5c0:c000:a8c1::359]) by smtp.gmail.com with ESMTPSA id z6sm147092qkl.39.2020.10.06.16.52.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Oct 2020 16:52:16 -0700 (PDT) From: "Valdis Kl=?utf-8?Q?=c4=93?=tnieks" X-Google-Original-From: "Valdis Kl=?utf-8?Q?=c4=93?=tnieks" X-Mailer: exmh version 2.9.0 11/07/2018 with nmh-1.7+dev To: William Tambe Subject: Re: make vmlinux .bss PROGBITS In-Reply-To: References: <123123.1602007865@turing-police> Mime-Version: 1.0 Date: Tue, 06 Oct 2020 19:52:15 -0400 Message-ID: <138876.1602028335@turing-police> Cc: Kernel Newbies X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============8553307922918781239==" Errors-To: kernelnewbies-bounces@kernelnewbies.org --===============8553307922918781239== Content-Type: multipart/signed; boundary="==_Exmh_1602028335_122947P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit --==_Exmh_1602028335_122947P Content-Type: text/plain; charset=us-ascii On Tue, 06 Oct 2020 13:56:11 -0500, William Tambe said: > We have a loader that loads vmlinux.bin (created from vmlinux using > objcopy -O binary), however if section .bss is not PROGBITS, > vmlinux.bin does not include that space, which the loader will not > reserve; by allocating that space in vmlinux.bin the loader also > reserves that space. Sounds like a buggy loader if it can't reserve a .bss segment. I mean, how hard is that to get right? Or are you saying that your linker is buggy, and won't output an entry sizing the.bss unless it's got bits set, at which point your loader never sees a .bss entry and things go pear shaped? > To solve the problem we are looking to make section .bss PROBGITS > using objcopy --set-section-flags .bss=alloc,load,contents , but it is > not trivial how to modify the Linux Makefile to achieve that. So now you have a buggy linker or loader and a custom kernel hack that you'll have to maintain and rework every time you upgrade the kernel. Probably more productive to figure out why you're hitting this issue when pretty much nobody else is... --==_Exmh_1602028335_122947P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Comment: Exmh version 2.9.0 11/07/2018 iQIVAwUBX30DLwdmEQWDXROgAQIJDw//RC6h0MWXDqUxJV32cxqa/dDDSRgMoy7o LnEjC7gy6RMVD/zjH9tEau1ngBIrey8y4plKJHPTDoWv+/YIWTFoBhccceR4BJhF Ku7ZLzbg+X5nMD+N43FRHrYgh9cGnYOXNI9bet0nbOoGZJwZu7MZNIMrtARzD5qC tmohxEef6juKsEtHDxSB2CI9FGIJBjdz6T4yHgQPNX3taMlVQcTykudn1cDMTTCD ApVdccji1IbfTWd5JUeWVIax7A9NJigSSpDaeqpyAtsQb5uqLUMMhwQhoOr6Z//C QGSP46tDL/6UdhPsG20qHbiWPGuDGva+KfE++/7xeLashyBCj6jXfxHTHYu4FFAc iEGwVXvpKJH8KREq/zX1lqAviqkSKkUtaGxYjFKqpBGisrkmnwvwHmn/EIGUhvXz IpZjRBN6/ZCqH4yfDtnjni/VR4596fayq8pZH1S3fHJW+uh/KkMcuyQk6AOzOhHf 4VpZ/KGYe68A0OkQL3OkcmWFPTAKcmcPtFn4jvrIJJBl/5N0TLlcZMOvCqti8WF0 2Y2vpI25kgSZ3WFph/39QOmznmalvkuGRcHGuzJ2sYR9jbnxL43gL4U1N7eNmHBd k+W7aRpuBs1iGLbJKq4vEIViY9qJhOYrr4+jJHWjfnDtPpbwkDEnUIjIX1hn8ctY hrVd4FgIxbI= =YE+7 -----END PGP SIGNATURE----- --==_Exmh_1602028335_122947P-- --===============8553307922918781239== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies --===============8553307922918781239==--