* elf32-mips.c (elf32_mips_ignore_discarded_relocs): Move to...
elfxx-mips.c (_bfd_mips_elf_ignore_discarded_relocs): ... here. elf64-mips.c (elf_backend_ignore_discarded_relocs): Use _bfd_mips_elf_ignore_discarded_relocs. elfxx-mips.h (_bfd_mips_elf_ignore_discarded_relocs): Declare.
This commit is contained in:
parent
d4df96e6ca
commit
53bfd6b45b
5 changed files with 22 additions and 12 deletions
|
@ -1,3 +1,11 @@
|
||||||
|
2002-06-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
|
||||||
|
|
||||||
|
* elf32-mips.c (elf32_mips_ignore_discarded_relocs): Move to...
|
||||||
|
elfxx-mips.c (_bfd_mips_elf_ignore_discarded_relocs): ... here.
|
||||||
|
elf64-mips.c (elf_backend_ignore_discarded_relocs): Use
|
||||||
|
_bfd_mips_elf_ignore_discarded_relocs.
|
||||||
|
elfxx-mips.h (_bfd_mips_elf_ignore_discarded_relocs): Declare.
|
||||||
|
|
||||||
2002-06-05 H.J. Lu <hjl@gnu.org>
|
2002-06-05 H.J. Lu <hjl@gnu.org>
|
||||||
|
|
||||||
* elfxx-mips.c (mips_elf_calculate_relocation): Call
|
* elfxx-mips.c (mips_elf_calculate_relocation): Call
|
||||||
|
|
|
@ -82,8 +82,6 @@ static boolean elf32_mips_grok_psinfo
|
||||||
PARAMS ((bfd *, Elf_Internal_Note *));
|
PARAMS ((bfd *, Elf_Internal_Note *));
|
||||||
static boolean elf32_mips_discard_info
|
static boolean elf32_mips_discard_info
|
||||||
PARAMS ((bfd *, struct elf_reloc_cookie *, struct bfd_link_info *));
|
PARAMS ((bfd *, struct elf_reloc_cookie *, struct bfd_link_info *));
|
||||||
static boolean elf32_mips_ignore_discarded_relocs
|
|
||||||
PARAMS ((asection *));
|
|
||||||
static boolean elf32_mips_write_section
|
static boolean elf32_mips_write_section
|
||||||
PARAMS ((bfd *, asection *, bfd_byte *));
|
PARAMS ((bfd *, asection *, bfd_byte *));
|
||||||
static irix_compat_t elf32_mips_irix_compat
|
static irix_compat_t elf32_mips_irix_compat
|
||||||
|
@ -1726,15 +1724,6 @@ elf32_mips_discard_info (abfd, cookie, info)
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static boolean
|
|
||||||
elf32_mips_ignore_discarded_relocs (sec)
|
|
||||||
asection *sec;
|
|
||||||
{
|
|
||||||
if (strcmp (sec->name, ".pdr") == 0)
|
|
||||||
return true;
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
static boolean
|
static boolean
|
||||||
elf32_mips_write_section (output_bfd, sec, contents)
|
elf32_mips_write_section (output_bfd, sec, contents)
|
||||||
bfd *output_bfd;
|
bfd *output_bfd;
|
||||||
|
@ -2056,7 +2045,7 @@ static const struct ecoff_debug_swap mips_elf32_ecoff_debug_swap = {
|
||||||
|
|
||||||
#define elf_backend_discard_info elf32_mips_discard_info
|
#define elf_backend_discard_info elf32_mips_discard_info
|
||||||
#define elf_backend_ignore_discarded_relocs \
|
#define elf_backend_ignore_discarded_relocs \
|
||||||
elf32_mips_ignore_discarded_relocs
|
_bfd_mips_elf_ignore_discarded_relocs
|
||||||
#define elf_backend_write_section elf32_mips_write_section
|
#define elf_backend_write_section elf32_mips_write_section
|
||||||
#define elf_backend_mips_irix_compat elf32_mips_irix_compat
|
#define elf_backend_mips_irix_compat elf32_mips_irix_compat
|
||||||
#define elf_backend_mips_rtype_to_howto mips_elf32_rtype_to_howto
|
#define elf_backend_mips_rtype_to_howto mips_elf32_rtype_to_howto
|
||||||
|
|
|
@ -2719,6 +2719,8 @@ const struct elf_size_info mips_elf64_size_info =
|
||||||
#define elf_backend_gc_mark_hook _bfd_mips_elf_gc_mark_hook
|
#define elf_backend_gc_mark_hook _bfd_mips_elf_gc_mark_hook
|
||||||
#define elf_backend_gc_sweep_hook _bfd_mips_elf_gc_sweep_hook
|
#define elf_backend_gc_sweep_hook _bfd_mips_elf_gc_sweep_hook
|
||||||
#define elf_backend_hide_symbol _bfd_mips_elf_hide_symbol
|
#define elf_backend_hide_symbol _bfd_mips_elf_hide_symbol
|
||||||
|
#define elf_backend_ignore_discarded_relocs \
|
||||||
|
_bfd_mips_elf_ignore_discarded_relocs
|
||||||
#define elf_backend_mips_irix_compat elf64_mips_irix_compat
|
#define elf_backend_mips_irix_compat elf64_mips_irix_compat
|
||||||
#define elf_backend_mips_rtype_to_howto mips_elf64_rtype_to_howto
|
#define elf_backend_mips_rtype_to_howto mips_elf64_rtype_to_howto
|
||||||
#define elf_backend_ecoff_debug_swap &mips_elf64_ecoff_debug_swap
|
#define elf_backend_ecoff_debug_swap &mips_elf64_ecoff_debug_swap
|
||||||
|
|
|
@ -6422,6 +6422,15 @@ _bfd_mips_elf_hide_symbol (info, entry, force_local)
|
||||||
got->_raw_size += MIPS_ELF_GOT_SIZE (dynobj);
|
got->_raw_size += MIPS_ELF_GOT_SIZE (dynobj);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
boolean
|
||||||
|
_bfd_mips_elf_ignore_discarded_relocs (sec)
|
||||||
|
asection *sec;
|
||||||
|
{
|
||||||
|
if (strcmp (sec->name, ".pdr") == 0)
|
||||||
|
return true;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
/* MIPS ELF uses a special find_nearest_line routine in order the
|
/* MIPS ELF uses a special find_nearest_line routine in order the
|
||||||
handle the ECOFF debugging information. */
|
handle the ECOFF debugging information. */
|
||||||
|
|
||||||
|
|
|
@ -71,6 +71,8 @@ extern void _bfd_mips_elf_copy_indirect_symbol
|
||||||
PARAMS ((struct elf_link_hash_entry *, struct elf_link_hash_entry *));
|
PARAMS ((struct elf_link_hash_entry *, struct elf_link_hash_entry *));
|
||||||
extern void _bfd_mips_elf_hide_symbol
|
extern void _bfd_mips_elf_hide_symbol
|
||||||
PARAMS ((struct bfd_link_info *, struct elf_link_hash_entry *, boolean));
|
PARAMS ((struct bfd_link_info *, struct elf_link_hash_entry *, boolean));
|
||||||
|
extern boolean _bfd_mips_elf_ignore_discarded_relocs
|
||||||
|
PARAMS ((asection *));
|
||||||
extern boolean _bfd_mips_elf_find_nearest_line
|
extern boolean _bfd_mips_elf_find_nearest_line
|
||||||
PARAMS ((bfd *, asection *, asymbol **, bfd_vma, const char **,
|
PARAMS ((bfd *, asection *, asymbol **, bfd_vma, const char **,
|
||||||
const char **, unsigned int *));
|
const char **, unsigned int *));
|
||||||
|
|
Loading…
Add table
Reference in a new issue