X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f X-Recipient: djgpp AT delorie DOT com Received-SPF: neutral (johanna3.inet.fi: domain iki.fi is neutral about designating 84.248.104.250 as permitted sender) identity=mailfrom; receiver=johanna3.inet.fi; client-ip=84.248.104.250; envelope-from=andris DOT pavenis AT iki DOT fi; helo=[192.168.1.10]; Message-ID: Date: Wed, 25 Jan 2023 20:31:47 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: DXE3 with std::vector To: djgpp AT delorie DOT com References: <63a56722-21d6-a368-6400-907f0cf9d01c AT gmail DOT com> <3b8f674c-bca3-c679-952e-f8ba5af196e7 AT gmail DOT com> <61e4c33f-af61-5828-5737-bcf05707ab4a AT gmail DOT com> Content-Language: en-US-large From: "Andris Pavenis (andris DOT pavenis AT iki DOT fi) [via djgpp AT delorie DOT com]" In-Reply-To: <61e4c33f-af61-5828-5737-bcf05707ab4a@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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 1/23/23 20:06, J.W. Jagersma (jwjagersma AT gmail DOT com) [via djgpp AT delorie DOT com] wrote: > On 2023-01-23 05:00, Ozkan Sezer (sezeroz AT gmail DOT com) [via djgpp AT delorie DOT com] wrote: >> The thing is, dxe3gen invokes ld, not gcc. gcc is a front-end to ld >> and handles any such ugliness behind the scene and doing the same for >> dxe3gen might be a real pain. > I think the tricky part is to prevent gcc from invoking stubify on the > resulting object file. Otherwise, it doesn't look too difficult. Just replace > param sequences such as "-T" "dxe.ld" with "-Wl,-T,dxe.ld". The same can be > done for DXE_AS. It is should be easy: 1) dump GCC specs (gcc -dumpspecs >some_file 2) delete next line after line containing '*post_link:' 3)  use that file in  -T option Andris