linker: Support -static-pie
and -static -shared
#71804
+127
−134
Merged