Minecraft wiki entry for Giant, associated text: Because giants are not actually undead, they do not burn in sunlight and they are damaged by potions of harming. Iron golems attack giants as they attack other hostile mobs.