gcc: ARM Type Attributes

1 
1 6.33.3 ARM Type Attributes
1 --------------------------
1 
1 On those ARM targets that support 'dllimport' (such as Symbian OS), you
1 can use the 'notshared' attribute to indicate that the virtual table and
1 other similar data for a class should not be exported from a DLL.  For
1 example:
1 
1      class __declspec(notshared) C {
1      public:
1        __declspec(dllimport) C();
1        virtual void f();
1      }
1 
1      __declspec(dllexport)
1      C::C() {}
1 
1 In this code, 'C::C' is exported from the current DLL, but the virtual
1 table for 'C' is not exported.  (You can use '__attribute__' instead of
1 '__declspec' if you prefer, but most Symbian OS code uses '__declspec'.)
1