* xcofflink.c (xcoff_write_global_symbol): Set n_scnum for abs_section.
authorAlan Modra <amodra@gmail.com>
Tue, 6 Aug 2002 11:24:40 +0000 (11:24 +0000)
committerAlan Modra <amodra@gmail.com>
Tue, 6 Aug 2002 11:24:40 +0000 (11:24 +0000)
bfd/ChangeLog
bfd/xcofflink.c

index 2917d2752548ca61e80d1fe631947bf6f57d8260..4b9caa3779628b9ba346987d617ca329bc8cbe34 100644 (file)
@@ -1,3 +1,7 @@
+2002-08-06  Alan Modra  <amodra@bigpond.net.au>
+
+       * xcofflink.c (xcoff_write_global_symbol): Set n_scnum for abs_section.
+
 2002-08-06  Alan Modra  <amodra@bigpond.net.au>
 
        * elf64-ppc.c (ppc64_elf_howto_raw): Zero all src_mask entries.
index c1793544e3377fa88c6df9c136dc2b5ec3b67554..a869d7d3d6d9838c44a7f85bf7c9e6122a4586c0 100644 (file)
@@ -5887,7 +5887,10 @@ xcoff_write_global_symbol (h, inf)
       isym.n_value = (h->root.u.def.section->output_section->vma
                      + h->root.u.def.section->output_offset
                      + h->root.u.def.value);
-      isym.n_scnum = h->root.u.def.section->output_section->target_index;
+      if (bfd_is_abs_section (h->root.u.def.section->output_section))
+       isym.n_scnum = N_ABS;
+      else
+       isym.n_scnum = h->root.u.def.section->output_section->target_index;
       isym.n_sclass = C_HIDEXT;
       aux.x_csect.x_smtyp = XTY_SD;