DLL injections (safety)

which is more safe against dll.injections attacks ! the dynamic linking or static linking …and why?