Static PIEs contain DT_INIT and DT_FINI. However, statically linked libc does not read the dynamic entries, so patching those entries has no effect. Check DT_FLAGS_1 to detect input static PIEs and rely on entry point patching accordingly. Fixes #201371.