bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/17527] Function left out of ELF


From: amodra at gmail dot com
Subject: [Bug ld/17527] Function left out of ELF
Date: Fri, 31 Oct 2014 23:35:52 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=17527

Alan Modra <amodra at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |amodra at gmail dot com
         Resolution|---                         |INVALID

--- Comment #1 from Alan Modra <amodra at gmail dot com> ---
Not a linker bug. __attribute__((section ...)) on functions in classes breaks
the mechanism g++ uses to arrange for just one copy of the function to be kept.

Trunk g++ diagnoses this as an error

In file included from main.cpp:6:0:
TestHandler.h: At global scope:
TestHandler.h:10:7: error: Both section and comdat group is set
 class TestHandler : public GeneralHandler

-- 
You are receiving this mail because:
You are on the CC list for the bug.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]