Relax assertion in BFIN linker to allow for discard GOT relocs.
[binutils-gdb.git] / bfd / coff-rs6000.c
index ed21a05bc049cf604b9b323cf2404e04f422a2c8..e7a215b65b21be467849fe91f4532ac0762363c5 100644 (file)
@@ -420,7 +420,7 @@ _bfd_xcoff_swap_sym_in (bfd *abfd, void * ext1, void * in1)
     }
 
   in->n_value = H_GET_32 (abfd, ext->e_value);
-  in->n_scnum = H_GET_16 (abfd, ext->e_scnum);
+  in->n_scnum = (short) H_GET_16 (abfd, ext->e_scnum);
   in->n_type = H_GET_16 (abfd, ext->e_type);
   in->n_sclass = H_GET_8 (abfd, ext->e_sclass);
   in->n_numaux = H_GET_8 (abfd, ext->e_numaux);