From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) by sourceware.org (Postfix) with ESMTP id 62E853858D3C for ; Mon, 16 Jan 2023 10:19:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 62E853858D3C Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=kernel.crashing.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=kernel.crashing.org Received: from gate.crashing.org (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.14.1) with ESMTP id 30GAIZAJ016445; Mon, 16 Jan 2023 04:18:35 -0600 Received: (from segher@localhost) by gate.crashing.org (8.14.1/8.14.1/Submit) id 30GAIYkZ016444; Mon, 16 Jan 2023 04:18:34 -0600 X-Authentication-Warning: gate.crashing.org: segher set sender to segher@kernel.crashing.org using -f Date: Mon, 16 Jan 2023 04:18:33 -0600 From: Segher Boessenkool To: Wilhelm Meier Cc: gcc-help Subject: Re: Active patch for c23 #embed feature? Message-ID: <20230116101833.GF25951@gate.crashing.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00,JMQ_SPF_NEUTRAL,KAM_DMARC_STATUS,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Hi! On Mon, Jan 16, 2023 at 09:55:42AM +0100, Wilhelm Meier wrote: > The C23 feature #embed was accepted. Does anybody know of a patch > implemeting this in gcc? > > https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2022/p1967r9.html Why not just use .incbin (the GNU as directive, not the similarly named tool mentioned in that paper)? This exists since binutils 2.12 (2002). (If you use that assembler of course.) Segher