| delorie.com/archives/browse.cgi | search |
| 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=QbN7mUhQlohpsD+xdAUi8d+QJdYYAOIkHgglVIIpB90=; | |
| b=ilKHD2xO4ZoW1e0PFSNEfd8wx0EXb7KuXtPX5fSuqm9aJz+lT6VKNg5eT8e7PfxZbt | |
| Md9c1YfrMNipV6gUehPoPs1Em8LHuuokqHN3oZL2U+wcptfDa+PTJ/KLfJT+4W8/Pn/b | |
| ipJuzB3eCMeUmdiXPpX3zOQOleVf1uSLjP9UZvrjRr7yXENwZt5h8MMS0JHucHSENEPY | |
| eZLQ39lJdylmmQeBR0t+ZMB8pTHsYnFALteQ7XnQYZNT9XIogoRgaE4zl98+TPVLjpid | |
| t4xoVH3liESifI1XhrnxcyueangAWbQgPzq4it/S6S0OCqfeffLxVoepyGj2UMwracZ9 | |
| 1lJQ== | |
| 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=QbN7mUhQlohpsD+xdAUi8d+QJdYYAOIkHgglVIIpB90=; | |
| b=IwXnodho6WZB1V28ns15tCRfostId/LnZScB9oVGkNfs5+yXiXCISL1SelRsDNUZLh | |
| r+xvG6YbLDwQ/GDmuzqzhHk8QjvxQNu2WZSgaT/vIKgS1raIcI6v3CB2UIjM/jX0GM2m | |
| //usVGRSbzHQO1iYX5ldHFCYCngr2CIMH6a3VC6w88dTDwk8+QeLz8TGUUMl2Olzr6yO | |
| cdI5nK0535Ga6GizUaZ4rdjoM0iQS6uyc6zpHURwX4k1/IHCuE4MZxrYyn1N/lWap5yw | |
| zlx+vvWyWgLycGcnOn+KDIoGFXYfOSzMf8qgr5dbvrjASvjxNpMKGbb3BgwAF39EiwDA | |
| xW/w== | |
| X-Gm-Message-State: | AFqh2kroB0sSsvxeS5W0ePmsoFeCyzfArw0jaY8ZFmWqsm4pxlQb0hb8 |
| tdf9dZEp6WxuGKNbtaRIHteLHQuoDEW6YDItt2GPMwFL | |
| X-Google-Smtp-Source: | AMrXdXtVAkhE3W4pr4l2k0lhJYY1jcBdrItRQo1snC9tuvrGQr+xe9uCLHmvvqUrMQZET4lyGMTNMhL+HJRSgo0M1H8= |
| X-Received: | by 2002:a5d:5185:0:b0:2bd:d222:68b3 with SMTP id |
| k5-20020a5d5185000000b002bdd22268b3mr945252wrv.95.1674913227803; Sat, 28 Jan | |
| 2023 05:40:27 -0800 (PST) | |
| MIME-Version: | 1.0 |
| In-Reply-To: | <83h6waaium.fsf@gnu.org> |
| References: | <edefcfee-d1ce-415a-8d1d-525a660fb0d5n AT googlegroups DOT com> |
| <CAA2C=vCduRPA7Ky-kDqs=QtO-qi=DQczM6FMHhB+=Ltof54P=Q AT mail DOT gmail DOT com> | |
| <c934abb6-c11e-0087-cd32-365d25d3f154 AT gmail DOT com> <CAA2C=vCHMXDD8iewRStieHyTcgjGF3=d29LmMT53vrzGYe+zMQ AT mail DOT gmail DOT com> | |
| <CACuL_+CZm++qhEr7PedDmQaTxjZu9d-rVSw1bgPeist7XZ+dpQ AT mail DOT gmail DOT com> | |
| <CAA2C=vDPwv5G9DeFKyKFqt39cDDmO4LmDtbtMyoMdRR2xeEkow AT mail DOT gmail DOT com> | |
| <3b8f674c-bca3-c679-952e-f8ba5af196e7 AT gmail DOT com> <CAA2C=vBptnTAy2TA-pj5JCbAUJMiXkAAoP_xYFZZJ99iB7v9mQ AT mail DOT gmail DOT com> | |
| <500850be-fd64-3f82-a1e1-929903084e9b AT gmail DOT com> <CAA2C=vA0zXX3Sb49WBzU5g1-8dmO5G5wrb3uT+tLRq2LB0wu5Q AT mail DOT gmail DOT com> | |
| <3d9271ae-266d-ee7b-853b-984857ced1c8 AT gmail DOT com> <CAA2C=vD6sZpTicPh0xuJ16r76qBZ5BZro6x=9+=Z+P-0f_eRSA AT mail DOT gmail DOT com> | |
| <f04cd9db-fe76-219c-bacb-47711df559e2 AT gmail DOT com> <CAA2C=vCv_bpM+iinTcreMJD_gv34Rna3jLspiLFfESFuNxOtoA AT mail DOT gmail DOT com> | |
| <af7fa08a-b074-0a4c-5e2f-99299940e3cc AT gmail DOT com> <CAA2C=vB22rof4HPV_dVPy4tVmsmeDMy4G4r2Vx-_YLwOW6C9ug AT mail DOT gmail DOT com> | |
| <bbdf1853-5454-93b2-fcf9-2306c6949c86 AT gmail DOT com> <CAA2C=vBDi8gwhVVacnhnP+eufCkMNK4DancpOjnD7ScOWCEF6g AT mail DOT gmail DOT com> | |
| <83sffvbux1 DOT fsf AT gnu DOT org> <CAA2C=vAuq+O2gRRM--E0YAPy6D1pLgcP2r0-4+sCLis=kwGYzA AT mail DOT gmail DOT com> | |
| <83mt63azwi DOT fsf AT gnu DOT org> <CAA2C=vByQZVnfkF_0UX+4p+rcm8uTehwSnM9hSHW-m=Dc4HBtw AT mail DOT gmail DOT com> | |
| <835ycravjo DOT fsf AT gnu DOT org> <CAA2C=vCauV7VviJ2L+us_4KOgH8TYgEkVtn17hyBxDH5YuddRA AT mail DOT gmail DOT com> | |
| <83zga39fil DOT fsf AT gnu DOT org> <CAA2C=vCPF_OJkxGxqhQNue0K4j0WQ302GdYSncQydM_EN2kjuA AT mail DOT gmail DOT com> | |
| <83v8kr9bye DOT fsf AT gnu DOT org> <CAA2C=vCWL4XJaXstSouW5uUdQt2nyX6jTGxBH+Z6cX+=Te4F5Q AT mail DOT gmail DOT com> | |
| <83lelmakwk DOT fsf AT gnu DOT org> <CAA2C=vBGAd9mET8PH8wSL1dgoARKSEKMyYa7Whc0iWky2BaZ3A AT mail DOT gmail DOT com> | |
| <CAA2C=vDFaieGgM=PicuE1yTA1WLH6iQF1e2m4d0NCmQ-syUSbg AT mail DOT gmail DOT com> <83h6waaium DOT fsf AT gnu DOT org> | |
| From: | "Ozkan Sezer (sezeroz AT gmail DOT com) [via djgpp AT delorie DOT com]" <djgpp AT delorie DOT com> |
| Date: | Sat, 28 Jan 2023 16:40:27 +0300 |
| Message-ID: | <CAA2C=vA9oS-V1r2D1J=0thzeebzusLTs10HsVdt7jxu0=BAw=w@mail.gmail.com> |
| Subject: | Re: DXE3 with std::vector |
| To: | djgpp AT delorie DOT com |
| 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 |
>> > BTW, if I revert the patch and go back to the previous version, -lgcc
>> > problem can be easily worked around when using a makefile, like:
>> > LIBGCCDIR = $(dir $(shell $(CC) -print-libgcc-file-name))
>> > my.dxe:
>> > dxe3gen -o my.dxe -E _sym -U $(OBJS) -L$(LIBGCCDIR) -lgcc
>> >
>> > I even created a documentation patch to dxegen.txi for it. Should we
>> > really keep the patch in, or revert it?
>>
>> And it is unnecessary behavior change when there is actually a solution
>> so I vote for reverting.
>
> Fine by me, thanks.
OK then, will revert shortly.
As for documentation, is the following good? Better wording?
Index: dxegen.txi
===================================================================
RCS file: /cvs/djgpp/djgpp/src/dxe/dxegen.txi,v
retrieving revision 1.7
diff -u -r1.7 dxegen.txi
--- dxegen.txi 26 Jun 2015 16:39:06 -0000 1.7
+++ dxegen.txi 28 Jan 2023 12:52:28 -0000
@@ -214,7 +214,17 @@
the module and so on. As a workaround, keep such names unexported by
filtering exported names through @kbd{-E} option.
+@item
+Linking to gcc-provided libraries like libgcc may need special care,
+because the linker may have no idea where libgcc.a is. One solution
+to that when using a makefile is, retrieving the libgcc directory and
+combining it with -L before -lgcc:
@end itemize
+@example
+LIBGCCDIR = $(dir $(shell $(CC) -print-libgcc-file-name))
+my.dxe:
+ dxe3gen -o my.dxe -E _sym -U $(OBJS) -L$(LIBGCCDIR) -lgcc
+@end example
-*- The best way is to leave the symbols unresolved and resolve them at
runtime. To tell @command{dxe3gen} to not fail on unresolved symbols, add the
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |