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=R/OjP+4Ba/QbbBcov3qt8ZJKMiYdeRbw72GUg+iWXaI=; b=PAkNOgOisTlbT4deAB0dXkc6VC3s02G+AVF6eT84J1gBAjpo5YDnpI52cI3q+/J65M YiUQHkcaRqV3dpFGBMS/ptp89cruLDWN4q1oLAcVwTErcM3TmeH6gshi8trr8QFEtopa /yYSzxoGEguydumCgze9tNuhC9vK05pHuRALlcjDbPeypFVHHxXDkKYV6UpuAbbVR0v9 PEQpAF3F6PAFmZL/10Pu1xIQcbMIdItpbS1yRhAgdIUKlc1Wjj6o+4XhTjmpvnaet1kK VoxDw3ft3N06208uOLESxp5m76MOSmhZLUmPYhMpWXuw0O+X3YNZ4aHPVD/3NjGI1Yzc nfeA== 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=R/OjP+4Ba/QbbBcov3qt8ZJKMiYdeRbw72GUg+iWXaI=; b=bdINkpuUwCbsiG/d9u0tdOxPTzddr4luJBen8GaxC6B10bu3xnJ3YFqSWnrHKOYMOn 0haV8c5y8s77ubNhvNJTJhMEarSNqvWwNDBtDgFnGztNQ2XmVhRpn9uicSiz40GPXD0j kGlllYOcacojdY6sF0ddJwfE2i8/zcWsmKvzCwCz0YK5oAsle7KLlAlB15qHVPkZQaFk FnMl937mNMzK6fwfhuijRV4yR0howKfiVAVVwYwVb6mRm0RDyd+/YQjg2rwqkoEEQoqs QmQN/Wfg5RmeV16mf51ltoUGnJ2KIKWLw2CDvJGOXvHazoN0kPnZ3NaXXZsCrWSy1xgi nmIg== X-Gm-Message-State: AO0yUKWJVwxQiRvVSAm+HlTTUsLQMgtyhNM0777BPbb3VElW+wYJgEZc 6HBO+qSt9UgSU2xW82YxIsE92R+DOTL82I4JvW+TFui8 X-Google-Smtp-Source: AK7set+BKmlpCsSb9dYM+rJcgyXLKe5OclSEqLF5cQeQrO6pFT1RvawwMPdmJqscMafhe0krfB1hERE4TGwOaNaH9cQ= X-Received: by 2002:a05:600c:354f:b0:3dc:40b4:2d1f with SMTP id i15-20020a05600c354f00b003dc40b42d1fmr181820wmq.174.1674905958632; Sat, 28 Jan 2023 03:39:18 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <83v8kr9bye.fsf@gnu.org> 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> <83sffvbux1 DOT fsf AT gnu DOT org> <83mt63azwi DOT fsf AT gnu DOT org> <835ycravjo DOT fsf AT gnu DOT org> <83zga39fil DOT fsf AT gnu DOT org> <83v8kr9bye DOT fsf AT gnu DOT org> From: "Ozkan Sezer (sezeroz AT gmail DOT com) [via djgpp AT delorie DOT com]" Date: Sat, 28 Jan 2023 14:39:17 +0300 Message-ID: Subject: Re: DXE3 with std::vector To: djgpp AT delorie DOT com Content-Type: multipart/mixed; boundary="000000000000b2667705f3516e6a" 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 --000000000000b2667705f3516e6a Content-Type: text/plain; charset="UTF-8" > Note that additional "-Tdjgpp-x.djl" at the end which screws up everything. > > What if you use both -T and -Xlinker -T? IOW, pass -T both to GCC and > to the linker directly? That works with gcc-3.4.6, but not with gcc-2.95: adding -v to command line shows that gcc295 invokes ld with -Tdjgpp.djl -T dxe.ld > If this still doesn't work, can you show the output of "gcc -dumpspecs" > from GCC 2.95? Attached as 295SPECS.TXT [EDIT: really attached it this time.] >>> OK, but still: there should be no problem with having both on the >>> command line, right? >> >> No, no problems. But detecting and correctly using -lgcc was the >> original goal. > > But -L doesn't contradict that goal, does it? I'm trying to understand your question and how you see things: What I'm saying is, needing to add an additional -L/some/path for -lgcc is really counter-intuitive and unexpected. I guess someone has to run gcc -print-libgcc-file-name to manually detect it and than add it to his own command line. >> Looks like this is becoming a hassle. Revert the patch and document >> the -lgcc issue instead? (Even though I did like the result of the >> patch where it does run..) > > I'm sorry I'm causing the hassle, No, you really are not. > but can we please not give up just > yet, and see if we can have the cake and eat it, too? OK :) --000000000000b2667705f3516e6a Content-Type: text/plain; charset="US-ASCII"; name="295SPECS.TXT" Content-Disposition: attachment; filename="295SPECS.TXT" Content-Transfer-Encoding: base64 X-Attachment-Id: file0 KmFzbToKCgoqYXNtX2ZpbmFsOgoKCipjcHA6CiUoY3BwX2NwdSkgJXtwb3NpeDotRF9QT1NJWF9T T1VSQ0V9IC1pbWFjcm9zICVzZGpncHAudmVyIC1yZW1hcAoKKmNjMToKJShjYzFfY3B1KSAKCipj YzFwbHVzOgoKCiplbmRmaWxlOgoKCipsaW5rOgoKCipsaWI6Ci1sYwoKKmxpYmdjYzoKLWxnY2MK CipzdGFydGZpbGU6CiV7cGc6Z2NydDAubyVzfSV7IXBnOmNydDAubyVzfQoKKnN3aXRjaGVzX25l ZWRfc3BhY2VzOgoKCipzaWduZWRfY2hhcjoKJXtmdW5zaWduZWQtY2hhcjotRF9fQ0hBUl9VTlNJ R05FRF9ffQoKKnByZWRlZmluZXM6Ci1EdW5peCAtRGkzODYgLURHTzMyIC1EREpHUFA9MiAtRE1T RE9TICAgLUFzeXN0ZW0odW5peCkgLUFzeXN0ZW0obXNkb3MpIC1BY3B1KGkzODYpIC1BbWFjaGlu ZShpMzg2KQoKKmNyb3NzX2NvbXBpbGU6CjAKCip2ZXJzaW9uOgoyLjk1LjMKCiptdWx0aWxpYjoK LiA7CgoqbXVsdGlsaWJfZGVmYXV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WNwdT1pMzg2fSAl e200ODY6LW1jcHU9aTQ4Nn0gJXttcGVudGl1bTotbWNwdT1wZW50aXVtfSAle21wZW50aXVtcHJv Oi1tY3B1PXBlbnRpdW1wcm99fQoKKmxpbmtfY29tbWFuZDoKJXshZnN5bnRheC1vbmx5OiAleyFj OiV7IU06JXshTU06JXshRToleyFTOiUobGlua2VyKSAlbCAlWCAle28qfSAle0F9ICV7ZH0gJXtl Kn0gJXttfSAle059ICV7bn0gCSV7cn0gJXtzfSAle3R9ICV7dSp9ICV7eH0gJXt6fSAle1p9CSV7 IUE6JXshbm9zdGRsaWI6JXshbm9zdGFydGZpbGVzOiVTfX19CSV7c3RhdGljOn0gJXtMKn0gJUQg JW8JJXshbm9zdGRsaWI6JXshbm9kZWZhdWx0bGliczolRyAlTCAlR319CSV7IUE6JXshbm9zdGRs aWI6JXshbm9zdGFydGZpbGVzOiVFfX19CS1UZGpncHAuZGpsICV7VCp9fX19fX19CiV7IWM6JXsh TToleyFNTToleyFFOiV7IVM6c3R1YmlmeSAle3Z9ICV7byo6JSp9ICV7IW8qOmEub3V0fSB9fX19 fQoK --000000000000b2667705f3516e6a--