This commit fixes dynamic_too_enable for targets whose RTS linker can only load dynamic code. (cherry picked from commit fc3a5591) (cherry picked from commit ba24a6bd)