diff options
author | Ian Lance Taylor <ian@airs.com> | 1999-09-11 14:41:11 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1999-09-11 14:41:11 +0000 |
commit | 703153b5668996e80932ab4cde7972694a3c6d11 (patch) | |
tree | 0b92744c8f9b5c8180ad9553ca08b377ae0c5a8b /bfd/coffgen.c | |
parent | fa16d38700e5fbbeb00dbdbad7567366e97e154f (diff) | |
download | gdb-703153b5668996e80932ab4cde7972694a3c6d11.zip gdb-703153b5668996e80932ab4cde7972694a3c6d11.tar.gz gdb-703153b5668996e80932ab4cde7972694a3c6d11.tar.bz2 |
1999-09-11 Donn Terry <donn@interix.com>
* syms.c (BSF_DEBUGGING_RELOC): Define.
* coffgen.c (fixup_symbol_value): Relocate a symbol which has
BSF_DEBUGGING_RELOC set.
* bfd-in2.h: Rebuild.
Diffstat (limited to 'bfd/coffgen.c')
-rw-r--r-- | bfd/coffgen.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/coffgen.c b/bfd/coffgen.c index feb57a3..f090f10 100644 --- a/bfd/coffgen.c +++ b/bfd/coffgen.c @@ -585,7 +585,8 @@ fixup_symbol_value (abfd, coff_symbol_ptr, syment) syment->n_scnum = N_UNDEF; syment->n_value = coff_symbol_ptr->symbol.value; } - else if (coff_symbol_ptr->symbol.flags & BSF_DEBUGGING) + else if ((coff_symbol_ptr->symbol.flags & BSF_DEBUGGING) != 0 + && (coff_symbol_ptr->symbol.flags & BSF_DEBUGGING_RELOC) == 0) { syment->n_value = coff_symbol_ptr->symbol.value; } |