Issue with vtable duplication when compiling c++

Peter Naulls peter at chocky.org
Fri Aug 13 10:31:26 PDT 2004


In message <411C9854.8000503 at sqrt.co.uk>
          Nick Burrett <nick at sqrt.co.uk> wrote:

> John-Mark Bell wrote:
> 
> The problem here is to do with linker sections.  x86 g++ 3.3 does 
> duplicate the vtable block in both object files, however it uses a 
> gnu_linkonce attribute and section names to ensure that the linker 
> doesn't give multiple definitions.

Yet another reason to use ELF, I fear.

-- 
Peter Naulls - peter at chocky.org        | http://www.chocky.org/
----------------------------------------------------------------------------
Drobe - http://www.drobe.co.uk/        | The Premier RISC OS News Site



More information about the gcc mailing list