diff options
author | Steve Chamberlain <sac@cygnus> | 1992-01-24 22:44:51 +0000 |
---|---|---|
committer | Steve Chamberlain <sac@cygnus> | 1992-01-24 22:44:51 +0000 |
commit | e98e6ec1117b83defce2b1ccce6fd4ec3877bbfb (patch) | |
tree | 9fa72011ba39d8612b300def67a0816d7dcac02b /bfd/coff-a29k.c | |
parent | 95a876f3fa09e75e129afbf4fab65f634f3c5ec2 (diff) | |
download | gdb-e98e6ec1117b83defce2b1ccce6fd4ec3877bbfb.zip gdb-e98e6ec1117b83defce2b1ccce6fd4ec3877bbfb.tar.gz gdb-e98e6ec1117b83defce2b1ccce6fd4ec3877bbfb.tar.bz2 |
Uses the new small reloc type now.
Currently self hosts on sun4 and sun3
Diffstat (limited to 'bfd/coff-a29k.c')
-rw-r--r-- | bfd/coff-a29k.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/bfd/coff-a29k.c b/bfd/coff-a29k.c index 0be7ba4..c3ac63c 100644 --- a/bfd/coff-a29k.c +++ b/bfd/coff-a29k.c @@ -45,7 +45,9 @@ asymbol *symbol; long relocation = 0; if (symbol != (asymbol *)NULL) { - if (symbol->flags & BSF_FORT_COMM) { + if (symbol->section == &bfd_com_section) + { + relocation = 0; } else { relocation = symbol->value; @@ -83,7 +85,7 @@ DEFUN(a29k_reloc,(abfd, reloc_entry, symbol_in, data, input_section), r_type = reloc_entry->howto->type; /* FIXME: Do we need to check for partial linking here */ - if (symbol_in && (symbol_in->flags & BSF_UNDEFINED)) + if (symbol_in && (symbol_in->section == &bfd_und_section)) { /* Keep the state machine happy in case we're called again */ if (r_type == R_IHIHALF) @@ -233,7 +235,7 @@ static reloc_howto_type howto_table[] = #define RELOC_PROCESSING(relent, reloc, symbols, abfd, section) \ reloc_processing(relent, reloc, symbols, abfd, section) -void DEFUN(reloc_processing,(relent,reloc, symbols, abfd, section) , +static void DEFUN(reloc_processing,(relent,reloc, symbols, abfd, section) , arelent *relent AND struct internal_reloc *reloc AND asymbol **symbols AND @@ -266,7 +268,7 @@ void DEFUN(reloc_processing,(relent,reloc, symbols, abfd, section) , relent->addend = 0; } relent->address-= section->vma; - relent->section = 0; +/* relent->section = 0;*/ } } |