linker: Support -static-pie and -static -shared
#71804
Merged
-static-pie and -static -shared
#71804