Ya the problem was with the toolchain as GordonSchumacher mentioned...

When i switched to the arm-none-linux-gnueabi-xxx (from codesourcery), the problem got solved...

Thanks.........