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=to:subject:message-id:date:from:references:in-reply-to:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=pdIPXEVzmVrdYic++wvy/5lyPE5hizUpfY3HHRwl7oE=; b=nPqSeTts/eCDdpP6YdGLHxku/lz7d8kO2Zn/sgXyIxF/+N7k+AnPeR+DkcOgH+7ynN FRwzdeaIhpCTY0Jvn9Co9nweNTq4exYRgr3RtPfQ8NUgIWkkObA6eFhl3NJp/rEzbDYA i0aIVG0lDctUp2jb4E2XW5zGSewqRU7QLr7QgmsjAtIZfLild+YjVi/PY0aFEkyWJzJo Kx6GKPQyNRdlNc4Sm44VCDF2iXJJvYFYXtXioCxv1H7abrCpJqB5IpVYADPEOtLb5wzV HSWRqyuIcUsk5TD8H3DX/vfXX3nLrATKC+WEDHEvb5ZWMsrZ+r33HhzXElFioosEri2/ E0kQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:references:in-reply-to:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=pdIPXEVzmVrdYic++wvy/5lyPE5hizUpfY3HHRwl7oE=; b=vnd03DqtBt7mgZuY6SKB7FfKZNQ+FqL9G3UOhi69s+7yztymeXRezTCXFd46vOatOW GMI9ZmsJR1zvqWSnnrRfu7Tf/enOz1BCH3GQRMMik/3iFJhb1IiQ7q2Bjjj/Z7yRNi1f 0jmKhPMDGZGuDMgYaeWuXAOjvswPGeFN8ydT5y0A45VImtMhx/uOT25nAtwaMRoznjWX +Petjvzz7O6eaynLgrWbAcSxY4/Ga/mXDA3OnO2II+gSk/ZrKyxcD24TvhxXtQpe6Wav QJ3qsDzAtoLnu4zTD06a2RGLTBG8LJZdeNGvGvBADS/Vj5NVYPZlgnVju563rVjOBNjw 7PjQ== X-Gm-Message-State: AFqh2koB19VylNILKqGDzDZthCIgAFCX3miEJfx5cANHVVidA5xDAs9s cuZL7ecFdhwlJsPs66dCSFM3uMfHBJv5PqXNjbM5eU0O X-Google-Smtp-Source: AMrXdXv8Mg8TSr8soL5NttHSyAVGM7n6fGg4mX9DzNjy6shxZKgYv0gZV2bRABuuNQU89aGOHCxpLq3oi7h0Pej8U+Q= X-Received: by 2002:a05:600c:1d25:b0:3da:fa8a:8511 with SMTP id l37-20020a05600c1d2500b003dafa8a8511mr2437738wms.185.1674847421093; Fri, 27 Jan 2023 11:23:41 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: <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: "Ozkan Sezer (sezeroz AT gmail DOT com) [via djgpp AT delorie DOT com]" Date: Fri, 27 Jan 2023 22:23:40 +0300 Message-ID: Subject: Re: DXE3 with std::vector To: djgpp AT delorie DOT com Content-Type: text/plain; charset="UTF-8" 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/27/23, J.W. Jagersma (jwjagersma AT gmail DOT com) [via djgpp AT delorie DOT com] wrote: > On 2023-01-27 19:10, Ozkan Sezer (sezeroz AT gmail DOT com) [via djgpp AT delorie DOT com] > wrote: >>>>> 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? >> >> Here you go: >> h0.txt and x0.txt are outputs of -h and -x before the patch. >> h1.txt and x1.txt are outputs of -h and -x after the patch. > > Ah, I see now. gcc 3 inserts the wrong linker script. > > From the specs file you posted earlier: > > %{!T*:-Tdjgpp-x.djl} %{T*} > > This means, if no -T option is given, it uses -Tdjgpp-x.djl. Weirdly the > -T > option is not documented for gcc 3.4.6, that is why I assumed it had to be > wrapped via -Wl. > > New patch attached, this should work then. Yes, this one does work, and yields an identical dxe. DJ, Eli: I'd like to apply this patch. Any objections?