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=LMh+8TT7xKBL8ZD5gaLZj0euWRdqLdCr4HtYx0t64ko=; b=i+X0oEwcbq2CCGITlDfQ1G6H7RGbeje4indsniH/x6sFBxm6pe34rMmandQkTSGVFU kXLHNROGkH4V2F/rqAqP8W2sPO1dKalRsO/XXUepNOK+phQLEvvLXBxo4X0Qb2Vt1CEQ CmZpFLoilKva/mJ8TZupyBvgai6s2MtY8bUI2ccfNVRLo7FrJrCV1+ZvR6VJxAHgVjfL 2M7E75uuF7GnYAoQFu7E++O0sFHwPm6hs+xQ5uYlgRlM6Ju1lf5EFciz0aNNwQCZEZZJ gkZbxpdVGgdpbLGjwn/xx5biWlEXJdO3rH3rUhQrULb9iCXQdtDyhnYbuo0ungH0f/3E MvFg== 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=LMh+8TT7xKBL8ZD5gaLZj0euWRdqLdCr4HtYx0t64ko=; b=N3Absv7EUVFbs4kHPTaMSavhU4HaqXG2JIy3RPMkVR/dnKMOc7mU9T6sT5HuMiSTVI fcUAaWrZUZ/yXMs59ssMJRb3N2zAo3Nf6BelLD+K3I8yUWqHBHKQh86RzF2Bx24oYBUl O9jLuO9cYGDC0nf+Czg4fqZjBstF+6cj7UbXaOK1/1mUcAJ+HJl1DdnpQOmj9Vy0/vP/ p57xpOMvjxM9T8Kmoxn4yUli1AlD70K7ZgXC2/6qiLb97XiVc8a9xIFXKFJcW9d/tH6b j0c2DmeidNNZ5Xv/MN6LVUqGKQME8/nfjPOQPQKyzI+gLdXhuWK+08ThR028ofo1oY/o F6uQ== X-Gm-Message-State: AFqh2koN5+y1PqZpXL19M3uqoqh9yqMe3C2YeI8es8IGlfxOcW+Z5l83 M4fcjtdmYiCz55um2RiOGjrcqBgeiT02xg== X-Google-Smtp-Source: AMrXdXumSPV8hfSS9k3LwXgeca1lN4y76nk6h5yONaP29bBlbmh57mV6rxMwFKYQO39oQYUHHY8qhQ== X-Received: by 2002:a17:907:c5c6:b0:877:8a55:2a26 with SMTP id ts6-20020a170907c5c600b008778a552a26mr32514214ejc.60.1674842163242; Fri, 27 Jan 2023 09:56:03 -0800 (PST) Message-ID: Date: Fri, 27 Jan 2023 18:56:02 +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> <500850be-fd64-3f82-a1e1-929903084e9b AT gmail DOT com> <3d9271ae-266d-ee7b-853b-984857ced1c8 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-27 18:43, Ozkan Sezer (sezeroz AT gmail DOT com) [via djgpp AT delorie DOT com] wrote: >>>> 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. > > Well, it does not for me, which _is_ a problem. My toolchain is based on > gcc-3.4.6 and binutils-2.26.1. If you comment out the line with "remove(TEMP_O_FILE)", then run dxe3gen again, what does "objdump -h dxe_tmp.o" (or -x) show?