projects
/
external
/
binutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
17240c1
)
* xcofflink.c (xcoff_write_global_symbol): Set n_scnum for abs_section.
author
Alan Modra
<amodra@gmail.com>
Tue, 6 Aug 2002 11:24:40 +0000
(11:24 +0000)
committer
Alan Modra
<amodra@gmail.com>
Tue, 6 Aug 2002 11:24:40 +0000
(11:24 +0000)
bfd/ChangeLog
patch
|
blob
|
history
bfd/xcofflink.c
patch
|
blob
|
history
diff --git
a/bfd/ChangeLog
b/bfd/ChangeLog
index
2917d27
..
4b9caa3
100644
(file)
--- a/
bfd/ChangeLog
+++ b/
bfd/ChangeLog
@@
-1,5
+1,9
@@
2002-08-06 Alan Modra <amodra@bigpond.net.au>
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.
2002-08-06 Alan Modra <amodra@bigpond.net.au>
* elf64-ppc.c (ppc64_elf_howto_raw): Zero all src_mask entries.
2002-08-06 Alan Modra <amodra@bigpond.net.au>
diff --git
a/bfd/xcofflink.c
b/bfd/xcofflink.c
index
c179354
..
a869d7d
100644
(file)
--- 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_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;
isym.n_sclass = C_HIDEXT;
aux.x_csect.x_smtyp = XTY_SD;