mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-26 22:07:58 +08:00
* elfxx-mips.c (MICROMIPS_P): New macro.
(_bfd_mips_elf_symbol_processing): Use it.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2013-02-18 Paul Brook <paul@codesourcery.com>
|
||||||
|
|
||||||
|
* elfxx-mips.c (MICROMIPS_P): New macro.
|
||||||
|
(_bfd_mips_elf_symbol_processing): Use it.
|
||||||
|
|
||||||
2013-02-18 Maciej W. Rozycki <macro@codesourcery.com>
|
2013-02-18 Maciej W. Rozycki <macro@codesourcery.com>
|
||||||
|
|
||||||
* elfxx-mips.c (_bfd_mips_elf_create_dynamic_sections): Clarify
|
* elfxx-mips.c (_bfd_mips_elf_create_dynamic_sections): Clarify
|
||||||
|
@ -737,6 +737,10 @@ static bfd *reldyn_sorting_bfd;
|
|||||||
/* Nonzero if ABFD is using NewABI conventions. */
|
/* Nonzero if ABFD is using NewABI conventions. */
|
||||||
#define NEWABI_P(abfd) (ABI_N32_P (abfd) || ABI_64_P (abfd))
|
#define NEWABI_P(abfd) (ABI_N32_P (abfd) || ABI_64_P (abfd))
|
||||||
|
|
||||||
|
/* Nonzero if ABFD has microMIPS code. */
|
||||||
|
#define MICROMIPS_P(abfd) \
|
||||||
|
((elf_elfheader (abfd)->e_flags & EF_MIPS_ARCH_ASE_MICROMIPS) != 0)
|
||||||
|
|
||||||
/* The IRIX compatibility level we are striving for. */
|
/* The IRIX compatibility level we are striving for. */
|
||||||
#define IRIX_COMPAT(abfd) \
|
#define IRIX_COMPAT(abfd) \
|
||||||
(get_elf_backend_data (abfd)->elf_backend_mips_irix_compat (abfd))
|
(get_elf_backend_data (abfd)->elf_backend_mips_irix_compat (abfd))
|
||||||
@ -6423,7 +6427,7 @@ _bfd_mips_elf_symbol_processing (bfd *abfd, asymbol *asym)
|
|||||||
&& (asym->value & 1) != 0)
|
&& (asym->value & 1) != 0)
|
||||||
{
|
{
|
||||||
asym->value--;
|
asym->value--;
|
||||||
if (elf_elfheader (abfd)->e_flags & EF_MIPS_ARCH_ASE_MICROMIPS)
|
if (MICROMIPS_P (abfd))
|
||||||
elfsym->internal_elf_sym.st_other
|
elfsym->internal_elf_sym.st_other
|
||||||
= ELF_ST_SET_MICROMIPS (elfsym->internal_elf_sym.st_other);
|
= ELF_ST_SET_MICROMIPS (elfsym->internal_elf_sym.st_other);
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user