This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Strict aliasing and pointers to functions


--- av1474@comtv.ru wrote:

>          printf ("dummy is %p\n", __extension__ (void *) &dummy);
>          *(void **) (char **) (void *) &funcs.dummy = dlsym (NULL, "dummy");

Shouldn't you be calling dlopen() first?

Regards,
Amit Choudhary


 
____________________________________________________________________________________
Want to start your own business?
Learn how on Yahoo! Small Business.
http://smallbusiness.yahoo.com/r-index


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]