On Wed, Sep 11, 2013 at 11:14 AM, pramod.peddyreddy <pramod.peddyreddy@xxxxxxxxx> wrote: > sorry we tried -O0 it not -o0 > > Please find nm commands output below > > $nm rand_hfile.o | grep rand_ > > output: > 08f9eeb6 T rand_close > 08f9e4e9 T rand_open > > $nm rand_handler.sct | grep rand_ > > Out put shows nothing > (rand_close and rand_open are not used anywhere in the executable) > > $nm rand.so | grep rand_ > > U rand_close > U rand_open > > > > > > > -- > View this message in context: http://gcc.1065356.n5.nabble.com/How-to-disable-GCC-optimization-tp967456p967466.html > Sent from the gcc - Help mailing list archive at Nabble.com. Are you sure you are linking to rand_hfile.o ? What are the compiler/linker options that you are using for creating rand_handler.sct ?