I am also facing similar relocation issue. i am facing issue in normal c code where assembly has been disabled. Code is compiled using RVCT4.0 build 771. I tried with all possible options like --apcs /fpic, --apcs=/ropi --lower_ropi etc but it has no effect.Is there any utility or method using which we can identify, the parts of code responsible for these?