From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from emagii.se (www.emagii.com [185.133.207.17]) by sourceware.org (Postfix) with ESMTPS id 1F0643858D1E for ; Mon, 13 Feb 2023 16:24:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1F0643858D1E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=emagii.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=emagii.com Received: from [10.175.196.145] (84-55-68-216.customers.ownit.se [84.55.68.216]) by emagii.se (Postfix) with ESMTPSA id 9E4C112019C; Mon, 13 Feb 2023 17:24:46 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=emagii.com; s=default; t=1676305486; bh=9FFWE9eKrAU9MoEtqawyNOZLRnukQhHpiEiDyge781s=; h=Subject:To:From; b=oLpQr+MjIXMhpt8hvvt6zk7y0e3uIvGbEnI37jIJphCVROCJlVO71KnpuHAhpatzA MS+QOa9EsAATzixuoqWdYRTw25CWSUu9MNtWi/9qdOlQdzsNPBBgCbGdJc4mzXk77l pvLZ/A06L9pBR9P/EdAA/o1XKJjBy/D1scPw929A= Authentication-Results: emagii.beebytevps.io; spf=pass (sender IP is 84.55.68.216) smtp.mailfrom=binutils@emagii.com smtp.helo=[10.175.196.145] Received-SPF: pass (emagii.beebytevps.io: connection is authenticated) Message-ID: Date: Mon, 13 Feb 2023 17:24:46 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Subject: Re: [PATCH v4 0/6] ASCIZ Command for output section Content-Language: sv-FI To: binutils@sourceware.org Cc: nickc@redhat.com References: <20230213162009.15515-1-binutils@emagii.com> From: Ulf Samuelsson In-Reply-To: <20230213162009.15515-1-binutils@emagii.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-PPP-Message-ID: <167630548690.3743668.2433483671589887810@localhost.localdomain> X-PPP-Vhost: emagii.com X-Spam-Status: No, score=-6.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_FAIL,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Looks like I reached the mail limit PATCH V4 6/6 changed V3 like this: - int value = c; + int value = c - '0'; Best Regards Ulf Samuelsson Den 2023-02-13 kl. 17:20, skrev Ulf Samuelsson via Binutils: > Introduce an ASCIZ command for an output section > When generating a header for an embedded system > there is often a need to add text information. > > There are arguments for generating the header in the linker > instead of compiling the header as part of the program. > The lack of support for strings makes this process a bit unwieldy. > > The ASCIZ command allows you to specify a zero-terminated string as a parameter. > > Example: > > ASCIZ "This is a string" > > The string contains 16 characters, but a NUL character is added to the end, > so the areas reserved is 16+1 = 17 characters. > > The string may contain '\n', '\r', '\t' and octals, but not hex characters. > > Ideally, there should be a command which reserves a fixed size area. > > I:E: > > ASCII 20, "This is a string" > > but I have failed to get make this work in 'ld', > so this patch series is limited to ASCIZ. > > [PATCH v4 1/6] Document the ASCIZ command > [PATCH v4 2/6] Add ASCIZ to NEWS > [PATCH v4 3/6] Add ASCIZ to testsuite > [PATCH v4 4/6] ldlex.l: Add ASCIZ token > [PATCH v4 5/6] ldgram.y: Add 'ASCIZ ' command > [PATCH v4 6/6] Parse ASCIZ command >