This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [RFA] pei386 dll: auto-import patch


 --- Paul Sokolovsky <Paul.Sokolovsky@technologist.com> wrote: >
Gentlemen,
> 
> 4. I have no idea what may cause problems with elaborated C++ stuff
> (containing templates, etc.). The first thing to check is place where
> segfault happens - in OS linker or in app startup. If the latter is
> the case, then, as Danny Smith points out, it may be an issue with
> C++
> dlls at all, and not just with auto-import.

The problems I have seen are in app startup, or sometime later, when an
dll-imported  template class instantiation uses a helper template
object that is instantiated outside of the dll, rather than it's own
"specialisation" within the dll. The issue is what can be exposed in
headers for dll version compared to static version. It is not an an
--enable-auto-import issue, IMO. It can be confused with
--enable-auto-import, which was my initial reaction.  I was wrong. The
__MYLIB_USE_DLL type of macros can do more than just switch
import/export attributes  Now that I see what's going on I can
reproduce the same "bug" using the old ld and __attribute__(dllimport).

Danny
> 
> 
>      Hope this helps a bit,
> 
> 
> --
> Paul Sokolovsky, IT Specialist
> http://www.brainbench.com/transcript.jsp?pid=11135
> 
>  

_____________________________________________________________________________
http://messenger.yahoo.com.au - Yahoo! Messenger
- Voice chat, mail alerts, stock quotes and favourite news and lots more!


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]