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:content-language :references:to:subject:user-agent:mime-version:date:message-id:from :to:cc:subject:date:message-id:reply-to; bh=DHnChE7mmaXQCsOW32xWZ5KjBNLd6AmPIKt5CcKas30=; b=gV2VczDeaCcPTyZUS1LCDIpeH9FHsZPkXWY4pRT8dMD9NOp5NyqZIfcCOoEgFn11Uk jCKx0BSb6J34qb7bEK5E+fmsXRCtHtFY6j/AGyN6eeoMbxYQzZA/ZUXgsYlGQ2ZjdB4e A3bCIlemrYkB2GomCLCq94/nJHygZnF8MPpFK4uYd1XGZ9VpkhdMYiP7AMUPbt8Af3MZ SoqIAKU+RBjgYpKxptlB3i5MYg3RQDV4ZR2fMuPv5OSJsuTU7fsP69PujcP1eUITqe+U QOviI6vIqo0/SAok2AnJWqX4LZ8+9LFdd3pmtV4Pp2CAAkIJDjAX55GfhCxF0zhFsT9b YUfg== 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:content-language :references:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=DHnChE7mmaXQCsOW32xWZ5KjBNLd6AmPIKt5CcKas30=; b=ac7kFokgza4hsDMphVbcpvtnvXYTPz1zkU0NFT1E4zihiYSgBohCmsF/ibyu20rPDr VVkREwQT9VzRWJ+v19sV5RnGkcdhBiRHr0zKBJy59RaE9R8L06QunGM672X0NxFBrAEs pZc3BUz47HMEiYaAipDUsoL+Prpk4POmOGE+V2pkbMu3IpZcs+ZLAC/QaD20nqobXBNF DRkZoxDS/H5rwl66E5d65kUQFTFUnNrYyUCw78hDyk0IBYTDt4QGSn9jkqQ9XYIJI0Sb naXuF2/YPjv9MVhuNcZBFo1Tv/Pu2g52fQJgZTj6RMOFCOvdudHNk98tW5xR8M14NJJh /Bwg== X-Gm-Message-State: AFqh2krU5F6in5ncQNY7Wo3CIdhVkkXEIPLSANrlDDmY1c4zBNXtzJfW ad+pIAcOFr4sqftIXosr9MzFm78fDkrXow== X-Google-Smtp-Source: AMrXdXv6BgGOZLrDWUetIKAc1Wr+89VH3S331Mx9dYEy3HWNYqOTIFhT71Z60ZftgUaGaSG6PzIAIw== X-Received: by 2002:a17:907:c609:b0:862:c1d5:ea1b with SMTP id ud9-20020a170907c60900b00862c1d5ea1bmr47085210ejc.8.1674840629569; Fri, 27 Jan 2023 09:30:29 -0800 (PST) Message-ID: Date: Fri, 27 Jan 2023 18:30:28 +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 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> <500850be-fd64-3f82-a1e1-929903084e9b AT gmail DOT com> <3d9271ae-266d-ee7b-853b-984857ced1c8 AT gmail DOT com> Content-Language: en-US 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-27 10:43, Ozkan Sezer (sezeroz AT gmail DOT com) [via djgpp AT delorie DOT com] wrote: >>> - removal of -X: O-OK, default anyway. >>> - removal of -S: Are you really sure? >>> - removal of -r: Don't think that it'd work. >> >> Those are in ld_args now (-Wl,-X,-S,-r,-T,dxe.ld), gcc splits it at >> the commas. > > OK, missed that part, > >>> - removal of assembler for import lib >>> generation: Don't think that it'd work. >> >> The assembler is invoked via dxe_cc (gcc -c) instead. > > OK, > >> Getting multiple input sections sounds like some problem with the >> linker script. Do you have an open-source project for me to test on? >> I'll admit that I've never used DXE libraries before... > > Here is a tiny one: http://uhexen2.sourceforge.net/tmp/libau.tar.gz > > cd into src, and adjust Makefile.dj and cross_build.sh scripts as you > need. If you want to test linking with -lgcc, remove 'udivdi3.o' from > the objects and add -lgcc Thanks. It builds fine for me with the patched dxe3gen, no warnings, both with and without -lgcc. $ ~/djgpp-cvs/src/dxe/dxe3gen --show-exp sndpci.dxe _AU_close _AU_writedata _AU_start _AU_stop _AU_setrate _AU_getinfo _AU_setmixer_all _AU_cardbuf_space _AU_search $ ~/djgpp-cvs/src/dxe/dxe3gen --show-unres sndpci.dxe _sprintf _free ___djgpp_nearptr_enable _clock _int86 ___djgpp_base_address _calloc _disable _enable