diff options
author | Alan Modra <amodra@gmail.com> | 2002-08-06 11:24:40 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2002-08-06 11:24:40 +0000 |
commit | 0121a3da9ed7b30dafeba25718bc294153b3758c (patch) | |
tree | 6975d42bf417bd6c7f4416cfa9b7f28a8cd11ff5 /bfd/xcofflink.c | |
parent | 17240c1ff6ccfb3257a4ef23be79a5610b9515e5 (diff) | |
download | gdb-0121a3da9ed7b30dafeba25718bc294153b3758c.zip gdb-0121a3da9ed7b30dafeba25718bc294153b3758c.tar.gz gdb-0121a3da9ed7b30dafeba25718bc294153b3758c.tar.bz2 |
* xcofflink.c (xcoff_write_global_symbol): Set n_scnum for abs_section.
Diffstat (limited to 'bfd/xcofflink.c')
-rw-r--r-- | bfd/xcofflink.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bfd/xcofflink.c b/bfd/xcofflink.c index c179354..a869d7d 100644 --- a/bfd/xcofflink.c +++ b/bfd/xcofflink.c @@ -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; |