[patch] Fix for PIE with both -e and --core in use