aboutsummaryrefslogtreecommitdiff
path: root/bfd/coffgen.c
diff options
context:
space:
mode:
authorTimothy Wall <twall@alum.mit.edu>2000-04-07 00:58:07 +0000
committerTimothy Wall <twall@alum.mit.edu>2000-04-07 00:58:07 +0000
commit34cbe64ecf7ae8c7e029e4af582d98a7910a3bcf (patch)
tree6d15ec296466863723d444148542a94e7624a852 /bfd/coffgen.c
parenteb6bd4d38ea6ee7306c538b657c008f77f38cd62 (diff)
downloadgdb-34cbe64ecf7ae8c7e029e4af582d98a7910a3bcf.zip
gdb-34cbe64ecf7ae8c7e029e4af582d98a7910a3bcf.tar.gz
gdb-34cbe64ecf7ae8c7e029e4af582d98a7910a3bcf.tar.bz2
SEC_BLOCK, SEC_CLINK, and C_STATLAB added (TI COFF support).
Diffstat (limited to 'bfd/coffgen.c')
-rw-r--r--bfd/coffgen.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/bfd/coffgen.c b/bfd/coffgen.c
index f2410d9..47e5baa 100644
--- a/bfd/coffgen.c
+++ b/bfd/coffgen.c
@@ -608,8 +608,11 @@ fixup_symbol_value (abfd, coff_symbol_ptr, syment)
syment->n_value = (coff_symbol_ptr->symbol.value
+ coff_symbol_ptr->symbol.section->output_offset);
if (! obj_pe (abfd))
- syment->n_value +=
- coff_symbol_ptr->symbol.section->output_section->vma;
+ {
+ syment->n_value += (syment->n_sclass == C_STATLAB)
+ ? coff_symbol_ptr->symbol.section->output_section->lma
+ : coff_symbol_ptr->symbol.section->output_section->vma;
+ }
}
else
{