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=L/k0z0US+GL8AIWCdBiS18IerONrVrvp7eV9oLkYytc=; b=lG7/QRUjVKZZz9GJ/UWgZguNhYFOUuofxCciod6qaIIH+utSsDhVywEfq98SpgUG3c A4CqcgNVkRSO+J8YI/YkszrAFeaseOHDBvlF4iF83mHNe/XoycblHNk+EQitGBcR0qoJ 9xQFTMgWs5Qu6K02IMRWVl6wKINHA4FD6N1tMFIPv7skbWx+mZ5MiMhSInOtZZqK0jb3 HndeCyMkWkH0SmAJL2htgpsDGaqPY2XBF6m5CuFbQPFpfppKP3AsTML+jpfiP6yH0CfC CLKGLI8mXmWJAcGLTBUG0APiZf+kbaUzxT+npXNSfmeypiiW1Cw9gmuv/CZF/41/jqkP 5SOw== 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=L/k0z0US+GL8AIWCdBiS18IerONrVrvp7eV9oLkYytc=; b=0vSUyekm95qKFNZPBMyBZnnZDmXW3n4jd5rp+OtMSM+KXG7qWiWiD0myE82DToNgVZ ylCIw7enRQTj5Km5Jgx3E/sQyZSehdFXLZ52lMjyYlP1/H8YOqHWBroRLq2b5dt/iW8f tk9ab29yudMJ3PbL9SO1eg5v2Y/BZJ7UFt+IkgF9lwMdGeuxOUYnTxTONne9VVtRTWvs keCEsFjhVjYkK2xvZTzJRw0a4kdgZJzEvHje35QJBd7HwezfJr8Xc2+cUvw+mGXO0H+R YbiHGkt39Rsc1vQ9w7++WZ+jyxZAdSWb2i+GBt+sjj/G5BcEoeBdmsC1DFZgLMnYIGfH ibjg== X-Gm-Message-State: AFqh2koINIOY2IYrvuzSh14hwuqkbf0RUFqvgYeiShDNlV6KeUrtGMwk i6EiYWsuQjs+7h8E+gl0hR6YhXxctoJNJg== X-Google-Smtp-Source: AMrXdXsu5ZoT6kHPD5QeoxWrRz6mum+lusA45yS3W+RmjXdwNbLgWyI7NnjFFjHxYRZNRZdBFCjmyg== X-Received: by 2002:a17:907:1387:b0:7c8:9f04:ae7e with SMTP id vs7-20020a170907138700b007c89f04ae7emr38875919ejb.22.1674678133999; Wed, 25 Jan 2023 12:22:13 -0800 (PST) Message-ID: <0ad038e8-d542-a265-63f8-0ca0b80dc627@gmail.com> Date: Wed, 25 Jan 2023 21:22:13 +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: DXE3 with std::vector Content-Language: en-US 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> 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-25 20:25, Ozkan Sezer (sezeroz AT gmail DOT com) [via djgpp AT delorie DOT com] wrote: > On 1/25/23, Andris Pavenis (andris DOT pavenis AT iki DOT fi) [via > djgpp AT delorie DOT com] wrote: >> 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 > > No '*post_link:' in my gcc's dumpspecs (gcc-3.4.6, cross- from linux.) I think Andris added the post_link step somewhere in 4.x, earlier versions do not call stubify. So that doesn't require any special code.