Marks data as imported.
>>- -q--dataimported--+--------------+------------------------->< | .-:-----. | | V | | '-=----names-+-'
This option applies only to 64-bit compilations.
When this option is in effect, imported variables are dynamically bound with a shared portion of a library.
struct C{ static int i; }you would specify the variable C::i as being imported by specifying the compiler option in the following manner:
-qdataimported=i__1CYou can use the operating system dump -tv or nm utilities to get the mangled names from an object file. To verify a mangled name, use the c++filt utility.
Conflicts among the -qdataimported and -qdatalocal data-marking options are resolved in the following manner:
Options that list variable names: | The last explicit specification for a particular variable name is used. |
Options that change the default: | This form does not specify a name list. The last option specified is the default for variables not explicitly listed in the name-list form. |
Related information