Apparently Vita SDK doesn't support PIC. It throws "Invalid relocation type 25!" while creating the .self file when building RetroArch.