Fix many bugs about sections and relocations.