Flynn re-signs with Giants