X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f X-Recipient: djgpp AT delorie DOT com X-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=LU1FmyTX2/DWMIpMxm1w9EokUVHZIjG9Q53y3mwAD8A=; b=b9n5y+MluYAS1H7qOxarndKle3qvUt/brtG2a3NwdvZrXIStWizfOqH/wPcvTZw2mt Yuhk53yqv5/s0Ezp2I0jsHNnpJtv1ZopcotMtBQQ3zVwo8xdOnBjLAgopko7zOer1pIZ xLaz5l7CCYAFpOMmSSxg3cpwM8RPC9ekySJR6pMpArIOafkpvN3/hW3MiCQF7zmnaxG4 6WCNyZEE9vJGGEBL6YELdRt+rYWk0nCTVDf+BJMPBqSfNADLncwSUfoa8HdnvVbYNEl3 5PTe2eXOnVkD3bfB+z52/NIrjhI+XZB1P8c1h/x0dIDy05FgbTK4Vp9H2C0/nfU7ymJ1 QtDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=LU1FmyTX2/DWMIpMxm1w9EokUVHZIjG9Q53y3mwAD8A=; b=zIQ/+j/tfzZrHVbWFvIFDOvS0NuJH8pCD4lL50SZS/VuLymcjUjyySa7msR3NQk4ZS viLhnmtm8SK+10l3OcJBe38uBahF99GYiqBxRreLI6n7XeVzbkGlFpLr9rHajwu094Ja CoxcxYiVHlTexNkYaMqsUtZERT/Gf/q8LF5FLe8QlCMs+uVLcLnnaO2v7jSCjee9KTsi 0YB8EMa9+1NDf1vB3FPY1zCn5t9L0QDAbsgs1rQYfN/DTr/ff8Po5p/iA/C2ReG0medT rxFc3K3qll+cM0Ji9H2WAYTOlyFeWTCX88rCPXpe6BdWIvnGJfaxvMjHzMXVZlOnAYEx e5aw== X-Gm-Message-State: AO0yUKV42tcVj2cIYs8/20gd/PltuVAmyu89OZblmtr/d1hy4n7dRvCD pPKqAFcpyBTA1uZ6ZRCBqIenejqZ0WyiOA== X-Google-Smtp-Source: AK7set9jabldmIhk+kxJab+Olt/Oz5XtK2WzEHporC3JVBzbbfUbrAkxVquSnuVmqBk5wY1OyS737Q== X-Received: by 2002:a17:906:fb0f:b0:884:fd73:8053 with SMTP id lz15-20020a170906fb0f00b00884fd738053mr5577899ejb.9.1675030491712; Sun, 29 Jan 2023 14:14:51 -0800 (PST) Message-ID: Date: Sun, 29 Jan 2023 23:14:50 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [PATCH v3] dxe3gen: invoke ld/as via gcc Content-Language: en-US To: djgpp AT delorie DOT com References: <83r0vd78cu DOT fsf AT gnu DOT org> <83o7qh74td DOT fsf AT gnu DOT org> From: "J.W. Jagersma (jwjagersma AT gmail DOT com) [via djgpp AT delorie DOT com]" In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On 2023-01-29 22:17, Ozkan Sezer (sezeroz AT gmail DOT com) [via djgpp AT delorie DOT com] wrote: >>>> If so, what do you suggest to do with >>>> libstdc++, which AFAIU was the original motivation for the change? >>> >>> Aren't all gcc-provided versioned libraries residing in the same dir? >>> My patch just relies on that. >> >> It is probably possible to configure different directories for libstdc++ >> and libgcc. The native gpp*b.zip packages on ftp seem to do that. > > I took gcc1030b.zip and its companion gpp1030b.zip as an example: libgcc > is under /lib/gcc/djgpp/10, whereas libssp and libstdc++ are under > /lib, and my version handles both. > >> But another benefit of using gcc to invoke the linker, is that additional >> default library paths can be added via the specs file. For example, with >> my toolchain packages for Debian, linking via gcc will search: >> >> /usr/i386-pc-msdosdjgpp/local/lib (libraries compiled by user) >> /usr/lib/gcc/i386-pc-msdosdjgpp/x.x.x (gcc / libstdc++ libraries) >> /usr/i386-pc-msdosdjgpp/lib (libraries installed via package manager) > > Yes, that's an advantage. > >> And of course, users will no longer need to set any environment vars to >> run dxe3gen. It will just work "out of the box". That wasn't the initial >> goal, but I think it's a welcome side-effect. > > Yes, that's another advantage. > > The only downside to your patch is that older gcc versions have a problem > handling -T on their command line, which is why I had gone back. I don't > have a solution for that, buit I honestly haven't tried very much. > > Eli, DJ: What do you guys think? Consider also: gcc 2.95 is in the deleted/ directory on ftp. To me, that would indicate that it's no longer supported, and that code in cvs does not necessarily need to be compatible with it.