diff options
author | Kim Knuttila <krk@cygnus> | 1995-11-07 21:33:33 +0000 |
---|---|---|
committer | Kim Knuttila <krk@cygnus> | 1995-11-07 21:33:33 +0000 |
commit | d6f41a7d3e56c2b8467f39cd05283649050c09cc (patch) | |
tree | 68c2ee8680919e672e72ac7a80fbcc83b107abb7 /bfd/cofflink.c | |
parent | ccb98a5afde747f75e0bb24f735be0309f770aff (diff) | |
download | gdb-d6f41a7d3e56c2b8467f39cd05283649050c09cc.zip gdb-d6f41a7d3e56c2b8467f39cd05283649050c09cc.tar.gz gdb-d6f41a7d3e56c2b8467f39cd05283649050c09cc.tar.bz2 |
First round ld support for PPC PE
Diffstat (limited to 'bfd/cofflink.c')
-rw-r--r-- | bfd/cofflink.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bfd/cofflink.c b/bfd/cofflink.c index af8aa4a..99b5f30 100644 --- a/bfd/cofflink.c +++ b/bfd/cofflink.c @@ -204,6 +204,7 @@ _bfd_coff_link_hash_newfunc (entry, table, string) ret->numaux = 0; ret->auxbfd = NULL; ret->aux = NULL; + ret->toc_offset = 1; /* invalid toc address, sets the high bit */ } return (struct bfd_hash_entry *) ret; @@ -313,6 +314,7 @@ coff_link_add_object_symbols (abfd, info) return false; if (! coff_link_add_symbols (abfd, info)) return false; + if (! info->keep_memory) { if (! _bfd_coff_free_symbols (abfd)) @@ -529,6 +531,7 @@ coff_link_add_symbols (abfd, info) (*sym_hash)->type = sym.n_type; (*sym_hash)->numaux = sym.n_numaux; (*sym_hash)->auxbfd = abfd; + (*sym_hash)->toc_offset = 1; if (sym.n_numaux != 0) { union internal_auxent *alloc; @@ -2345,7 +2348,6 @@ _bfd_coff_generic_relocate_section (output_bfd, info, input_bfd, struct internal_reloc *rel; struct internal_reloc *relend; - rel = relocs; relend = rel + input_section->reloc_count; for (; rel < relend; rel++) |