public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/102193] New: DLL linking with a external referenced DLL
@ 2021-09-03 16:43 arsoftware25 at gmail dot com
  2021-09-03 19:02 ` [Bug driver/102193] " pinskia at gcc dot gnu.org
  2021-09-03 19:52 ` arsoftware25 at gmail dot com
  0 siblings, 2 replies; 3+ messages in thread
From: arsoftware25 at gmail dot com @ 2021-09-03 16:43 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102193

            Bug ID: 102193
           Summary: DLL linking with a external referenced DLL
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: arsoftware25 at gmail dot com
  Target Milestone: ---

Hi Corina

just figured out that a .def file in a dll may export function from a dll that
is referenced in the compilation stage like this:

gcc file.c external.dll def.def -o out.dll

if in the def.def it has a function that is in the file.c and also available in
external.dll it may generate an invalid out.dll

I don't know but this looks like a problem in gcc that need to be fixed, spend
one hour modifying my function in file.c and it was linking with external.dll

then I commented the function inside file.c and saw the compilation stage
finished without a link error

if it is a GCC feature then a warning about expernal DLL linkage could help a
lot when the function exported is inside an external DLL

hope to have explained it in an easy way

Ricardo

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug driver/102193] DLL linking with a external referenced DLL
  2021-09-03 16:43 [Bug c/102193] New: DLL linking with a external referenced DLL arsoftware25 at gmail dot com
@ 2021-09-03 19:02 ` pinskia at gcc dot gnu.org
  2021-09-03 19:52 ` arsoftware25 at gmail dot com
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-09-03 19:02 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102193

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2021-09-03
     Ever confirmed|0                           |1
          Component|c                           |driver
             Status|UNCONFIRMED                 |WAITING

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Can you attach a testcase and exactly what you want to warn about?  Also GCC
does not handle the linker so this might be a binutils issue
(http://sourceware.org/bugzilla).

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug driver/102193] DLL linking with a external referenced DLL
  2021-09-03 16:43 [Bug c/102193] New: DLL linking with a external referenced DLL arsoftware25 at gmail dot com
  2021-09-03 19:02 ` [Bug driver/102193] " pinskia at gcc dot gnu.org
@ 2021-09-03 19:52 ` arsoftware25 at gmail dot com
  1 sibling, 0 replies; 3+ messages in thread
From: arsoftware25 at gmail dot com @ 2021-09-03 19:52 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102193

--- Comment #2 from Ricardo Santos Pereira <arsoftware25 at gmail dot com> ---
thanks

BW

Em sex., 3 de set. de 2021 às 16:02, pinskia at gcc dot gnu.org <
gcc-bugzilla@gcc.gnu.org> escreveu:

> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102193
>
> Andrew Pinski <pinskia at gcc dot gnu.org> changed:
>
>            What    |Removed                     |Added
>
> ----------------------------------------------------------------------------
>    Last reconfirmed|                            |2021-09-03
>      Ever confirmed|0                           |1
>           Component|c                           |driver
>              Status|UNCONFIRMED                 |WAITING
>
> --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
> Can you attach a testcase and exactly what you want to warn about?  Also
> GCC
> does not handle the linker so this might be a binutils issue
> (http://sourceware.org/bugzilla).
>
> --
> You are receiving this mail because:
> You reported the bug.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-09-03 19:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-03 16:43 [Bug c/102193] New: DLL linking with a external referenced DLL arsoftware25 at gmail dot com
2021-09-03 19:02 ` [Bug driver/102193] " pinskia at gcc dot gnu.org
2021-09-03 19:52 ` arsoftware25 at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).