diff options
author | Ken Raeburn <raeburn@cygnus> | 1995-05-23 23:30:33 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@cygnus> | 1995-05-23 23:30:33 +0000 |
commit | a16fcab31a308d6b5796e48c48d8e0f1aaea5614 (patch) | |
tree | f9409c56d1b1d92c7790a3956c80e8fe26b7bf06 /bfd/elf32-target.h | |
parent | 6e43bf824ca45f067214ffba0cd973ea445b5dc3 (diff) | |
download | gdb-a16fcab31a308d6b5796e48c48d8e0f1aaea5614.zip gdb-a16fcab31a308d6b5796e48c48d8e0f1aaea5614.tar.gz gdb-a16fcab31a308d6b5796e48c48d8e0f1aaea5614.tar.bz2 |
Make linking mips-elf and mips-ecoff work. At least, better than it did.
* bfd.c (bfd_get_relocated_section_contents): Now a function, tries calling
routine from input bfd target vector for bfd_indirect_link_order. Put a
declaration into the header file.
* bfd-in2.h: Regenerated.
* elf32-mips.c (gprel16_with_gp): New function, split out from
mips_elf_gprel16_reloc.
(mips_elf_gprel16_reloc): Call it. If output bfd target vector isn't elf
flavoured, abort, since it's assumed to be elf in some of this code, including
the code that looks up the gp value.
(elf32_mips_get_relocated_section_contents): New function, modified from
bfd_generic_get_relocated_section_contents to deal with passing gp to
gprel16_with_gp.
(bfd_elf32_bfd_get_relocated_section_contents): New macro.
* elf32-target.h (bfd_elf32_bfd_get_relocated_section_contents): Don't define
if already defined.
Diffstat (limited to 'bfd/elf32-target.h')
-rw-r--r-- | bfd/elf32-target.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bfd/elf32-target.h b/bfd/elf32-target.h index 6ee592d..eb3ce76 100644 --- a/bfd/elf32-target.h +++ b/bfd/elf32-target.h @@ -31,8 +31,10 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #define bfd_elf32_get_section_contents _bfd_generic_get_section_contents #endif +#ifndef bfd_elf32_bfd_get_relocated_section_contents #define bfd_elf32_bfd_get_relocated_section_contents \ bfd_generic_get_relocated_section_contents +#endif #define bfd_elf32_bfd_relax_section bfd_generic_relax_section #define bfd_elf32_bfd_make_debug_symbol \ ((asymbol *(*) PARAMS ((bfd *, void *, unsigned long))) bfd_nullvoidptr) |