From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mo4-p00-ob.smtp.rzone.de (mo4-p00-ob.smtp.rzone.de [85.215.255.21]) by sourceware.org (Postfix) with ESMTPS id 3C53F3858428 for ; Fri, 8 Dec 2023 16:05:02 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3C53F3858428 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=gjlay.de Authentication-Results: sourceware.org; spf=none smtp.mailfrom=gjlay.de ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 3C53F3858428 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=85.215.255.21 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1702051503; cv=pass; b=odUUkbddZUaX5MyvGbzv1DuTEFtmFYaeDGO+QoyvqHLZkpyd6H1VUpWV3CvZXqymzNmiasSrxUhKSCr6Leuk7ooLP6YOMXNw80QmIcXKUTI1amE2Lr8eI5O+PmjtdxN5o47+NtLurSUCw9Iydt2L1hnMIXhbw0KJdpCy5IsWK78= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1702051503; c=relaxed/simple; bh=A7OtF42VznOqbcdeATHLku35NaxIORVcWS5n1KU8ZGg=; h=DKIM-Signature:DKIM-Signature:Message-ID:Date:MIME-Version: Subject:To:From; b=oUi8mpQlJV7h0sXE4B2/59xluvlGr7o7YpgmhepUxngisiwI7cIBXyoWp6Vd1xwLUTYgrHJS6h5lvKQbAtUHpT4ZqKGewbzP5gpfe7zhX8Q2dDLtxbAK3z/xDAGG0L/c/zExoMsDcapDpcF5hTGEKksmBAj6xKFRlak8G6V0Lbo= ARC-Authentication-Results: i=2; server2.sourceware.org ARC-Seal: i=1; a=rsa-sha256; t=1702051500; cv=none; d=strato.com; s=strato-dkim-0002; b=TAIliz0AQUXGNnKDyIGhvT7jWcbI0jOXAuUujq76vGZBv58ubdhYI7JSJ0thVrptJt l+LLPYnDHVY6uo9+B+mtrMjcDCZ1B3pcMb+QzdRnbl+VBb1qEEHGZWJxoKfEWhJrkmne HdQvg6zMlsEdP2LvipTj70KZCwBuoKgTKrcxmw4oQtsQcDMme4HRZzSw2m54t4geyfPF WOBcsjLy0dSN17M3JG0NBQr1y99GC1T1ZLaOh2B2yAfp0g5bbKReOaqyfGiSe3cMro0G Davh4J8vsY92NNRDGbgNL0gSiLfJ8QQpNHnC5OswvXdoSC1DW1dJcbMyRKx9nfsyGjFw UU7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1702051500; s=strato-dkim-0002; d=strato.com; h=In-Reply-To:From:References:To:Subject:Date:Message-ID:Cc:Date:From: Subject:Sender; bh=NhMkPubv7c3oeQ0VK7j96HC1kXPi8mMqO+gxgYpxOCE=; b=dZzjBH3q+7ZbjC6DBkotBGJo1DEWITCxFi3JFkVrc8xKP7k+80y1Xrr89Xus910SA8 gZVdkG4SR47C9M82/jfuhQO3yYEsuGuwXDRYdLFI+VCMatJbobtMVJLRxArwtiwCPPSs 6AabdNCCyWpM8EaP1fzt91HgCQzk4L//SN6nWWl9C1lOajt17X+fzBHwp6Wcyt3YpfcF dwE4l/d/eNdKcXz61gtmuXve0PnCteQU1gAWR22qQz1nBkcmFJowN9P384pnebkE8d7E wGgfHy1tiwqIH2N7i0fiNKIBdaZF57u3hUdRCEuNdBbFr2S/g/RGSRjjlrQciiiFRusg uHYg== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none X-RZG-CLASS-ID: mo00 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1702051500; s=strato-dkim-0002; d=gjlay.de; h=In-Reply-To:From:References:To:Subject:Date:Message-ID:Cc:Date:From: Subject:Sender; bh=NhMkPubv7c3oeQ0VK7j96HC1kXPi8mMqO+gxgYpxOCE=; b=fPoyUAYjyQHOD3gdv77XbdJ8aRr+b2uaOfR8ZDWQv2+TONyfp7n01Iu2dIJm76Hwch lywlZnCOFgCcnxNjTBPQPSm4I/8kHwmarNFkf2dybXgefwvS0iM60p5tdIV5+SBuchbd aivJ7I712e+MHSOaaZrEArh+HQ7nKUj54xkn7LGtllhUcfzQ4QCRAV57jF5W8/IW+Wl9 JYD/BS8gDJbVCn7IA/6IGd9BhMddiWJla2PZauaI320ygm/OsBtxKsma3vrlQwTfr/+H HRQi1BNdzcqVOyZo0j50P0rqoZ/NsivCdo4POxZ3tQBfH09ER3aZ21iOL8VuazFQf9w5 IBjA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1702051500; s=strato-dkim-0003; d=gjlay.de; h=In-Reply-To:From:References:To:Subject:Date:Message-ID:Cc:Date:From: Subject:Sender; bh=NhMkPubv7c3oeQ0VK7j96HC1kXPi8mMqO+gxgYpxOCE=; b=J6XnjDZe+24412r+wzCgOx/u0ky7p8odWSa8pE6AgRMqp8yOM8ESbwgz312ozmpRNk iO8QusyPv20y/Z+DAlAg== X-RZG-AUTH: ":LXoWVUeid/7A29J/hMvvT3koxZnKT7Qq0xotTetVnKkSjsSjo3O/MHXSz1aalw==" Received: from [192.168.2.102] by smtp.strato.de (RZmta 49.10.0 DYNA|AUTH) with ESMTPSA id Lf3d8bzB8G4xP2g (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Fri, 8 Dec 2023 17:04:59 +0100 (CET) Message-ID: <26fa969f-ecc2-4dca-8c25-ca2f5fdb3a87@gjlay.de> Date: Fri, 8 Dec 2023 17:04:58 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Question: default linker scripts and emulations Content-Language: en-US To: Nick Clifton , binutils@sourceware.org References: <26f6143b-cd4c-4c7d-bf06-4265d17f417f@gjlay.de> <627688a1-176c-4a8e-984e-3848c902b273@redhat.com> <93a44089-7ad5-4122-9df4-1cce6042c648@redhat.com> <22a26c57-7fab-4372-866a-4aa2b7c5a523@gjlay.de> From: Georg-Johann Lay In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_NONE,TXREP,T_SCC_BODY_TEXT_LINE 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: Am 08.12.23 um 12:29 schrieb Nick Clifton: > Hi Johann, > >> My current solution only requires a few changes to Binutils: >> >> * Introduce new emulations. >> >> * In ld/emulparams/avr*.sh, just set ARCH=avr:102 (something that >> already exists) >>    etc. and everything falls into place. >> >> Benefit is that ld-scripts are maintained in one canonical place. >> >> Anything other than a new emulation seems not feasible because >> ld/genscripts.sh >> has so many implicit assumptions that it's no fun to fight against it... >> Just swim with the flow et voilà; it's just a few lines in >> ld/Makefile.am and >> ld/configure.tgt (apart from the ld-scripts generation, which is just >> where >> I want that to happen). > > Ok, that seems a lot more reasonable. > > So - what emulations do you want, and how do they differ from the already > existing (avr) emulations ? > > If you want to write a patch for the binutils that would be fine, otherwise > if you can outline what you need I will do my best to create the patch for > you. > > Cheers >   Nick Hi Nick, I already have a working patch. The bulk of the changes is in avr.sc because a new MEMORY region is needed etc. See PR31124 where I lined out some of the intended features. If it ever comes to a review, I guess you would be the one to approve a patch ? (All in ld/ and all for target avr) Cheers, Johann