diff options
author | Ken Raeburn <raeburn@cygnus> | 1995-07-06 02:22:00 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@cygnus> | 1995-07-06 02:22:00 +0000 |
commit | ede4eed4838610aaaf1e43571638036ca3819c64 (patch) | |
tree | f959dbd6fbb60e94b3ef82eb74fa2fcfc2da0865 /bfd/elf32-mips.c | |
parent | 80c5739dbe40e1eac02aaf85fa63711c29571a2b (diff) | |
download | gdb-ede4eed4838610aaaf1e43571638036ca3819c64.zip gdb-ede4eed4838610aaaf1e43571638036ca3819c64.tar.gz gdb-ede4eed4838610aaaf1e43571638036ca3819c64.tar.bz2 |
Added new files elflink.c, elflink.h, elfcore.h.
Moved some mostly size-independent stuff from elfcode.h to elf.c, adding a data
structure to elfcode.h with some misc data and callback functions. Added a
pointer to that structure to the target back end data. More work can be done
here.
Renamed generic elf routines (not cpu-specific stuff) to start with bfd_elf or
_bfd_elf. Updated most call sites, sometimes defined some macros.
Moved some dynamic linking support code from m68k, sparc, i386 to common files,
using target back end flags to control behavior. More work can probably be
done here too.
Moved core- and linker-support code out of elfcode.h to elf.c, elfcore.h,
elflink.h, or elflink.c. Now elfcode.h contains only .o and executable
support, plus #includes of elfcore.h and elflink.h. Much of the contents of
these other header files can probably still be moved from the .h files to the
.c files, to get compiled only once.
Cleaned up some "gcc -Wall" warnings regarding unused or uninitialized
variables, in generic and cpu-specific code.
Diffstat (limited to 'bfd/elf32-mips.c')
-rw-r--r-- | bfd/elf32-mips.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/bfd/elf32-mips.c b/bfd/elf32-mips.c index 66f69dd..61c0138 100644 --- a/bfd/elf32-mips.c +++ b/bfd/elf32-mips.c @@ -1587,9 +1587,9 @@ mips_elf_find_nearest_line (abfd, section, symbols, offset, filename_ptr, /* Fall back on the generic ELF find_nearest_line routine. */ - return bfd_elf32_find_nearest_line (abfd, section, symbols, offset, - filename_ptr, functionname_ptr, - line_ptr); + return _bfd_elf_find_nearest_line (abfd, section, symbols, offset, + filename_ptr, functionname_ptr, + line_ptr); } /* The MIPS ELF linker needs additional information for each symbol in @@ -2713,9 +2713,9 @@ mips_elf_relocate_section (output_bfd, info, input_bfd, input_section, name = h->root.root.string; else { - name = elf_string_from_elf_section (input_bfd, - symtab_hdr->sh_link, - sym->st_name); + name = bfd_elf_string_from_elf_section (input_bfd, + symtab_hdr->sh_link, + sym->st_name); if (name == NULL) return false; if (*name == '\0') @@ -2788,7 +2788,7 @@ elf32_mips_get_relocated_section_contents (abfd, link_info, link_order, data, arelent **parent; /* for mips */ int gp_found; - bfd_vma gp; + bfd_vma gp = 0x12345678; /* initialize just to shut gcc up */ { struct bfd_hash_entry *h; |