I have a C program.
If I build it in Red Hat:
gcc -O2 -Wall -W -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wswitch -Wshadow -Wmissing-braces -Wparentheses -I./include -I./../include -I./../../include -I. -I./analyze -I./include/openssl -fPIC -D_WITH_THREADS -DPCA4 -DCLNT -DRPCSSL -DCK_GENERIC -DAES_CMAC_CRYPTO -DOID2ECPARAM -D_24a -c file.c
It compiles without error. And in:
dumpelf file.o | grep C_GetFuncnew
…appear this function.
If I compile the same cone on solaris 11, it compiles without error but:
dumpelf file.o | grep C_GetFuncnew
…does not appear.
static void set_functions(void){
...
ck_function_list.C_GetFuncnew= &C_GetFuncnew;
...
Why is this function not appearing ?