[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-hackers
Subject:    Re: Please Help Me Understand dlopen()]
From:       Terry Lambert <terry () lambert ! org>
Date:       1997-08-20 23:35:28
[Download RAW message or body]

> You forgot that the symbols, which are exported by the lib are
> totally different, if you rename a .c file to .cpp and compile
> it again. ==> C++ exported symbols
> 
> Well, it is easy to add '_' before the symbol, but the function-arguments
> of a C++ exported function are append encoded to the symbolname.
> eg.: '__func027_dfiv'
> 
> So writing a wrapper is not that straight forward as mentioned 
> above. You should also think of the C++ exporting mechanism.

How do you return a non-NULL pointer with argument type information
for symbol space munging, per C++?

We all know that the name is not the correct place to mung the
symbol, but for some reason, we are married to stupid linkers
and less-than-clevel object file symbol table formats.  8-(.


					Terry Lambert
					terry@lambert.org
---
Any opinions in this posting are my own and not those of my present
or previous employers.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic