aboutsummaryrefslogtreecommitdiff
path: root/gas/write.c
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@cygnus>1994-02-09 00:04:43 +0000
committerKen Raeburn <raeburn@cygnus>1994-02-09 00:04:43 +0000
commite8501a72cec65df0683b280abd977f35e5872c33 (patch)
tree5e1629e2ae0176b757ae229664db60834baf4a90 /gas/write.c
parentcafb569b7afc144a3333ec182b72e7a0039077ee (diff)
downloadfsf-binutils-gdb-e8501a72cec65df0683b280abd977f35e5872c33.zip
fsf-binutils-gdb-e8501a72cec65df0683b280abd977f35e5872c33.tar.gz
fsf-binutils-gdb-e8501a72cec65df0683b280abd977f35e5872c33.tar.bz2
(adjust_reloc_syms): Use abs_symbol instead of calling section_symbol.
Diffstat (limited to 'gas/write.c')
-rw-r--r--gas/write.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/gas/write.c b/gas/write.c
index 55d5961..20949f7 100644
--- a/gas/write.c
+++ b/gas/write.c
@@ -600,13 +600,9 @@ adjust_reloc_syms (abfd, sec, xxx)
BFD doesn't really handle relocations without symbols well.
(At least, the COFF support doesn't.) So for now we fake up
a local symbol in the absolute section. */
- static symbolS *abs_sym;
- if (!abs_sym)
- {
- abs_sym = section_symbol (absolute_section);
- abs_sym->sy_used_in_reloc = 1;
- }
- fixp->fx_addsy = abs_sym;
+
+ abs_symbol.sy_used_in_reloc = 1;
+ fixp->fx_addsy = &abs_symbol;
}
#endif