mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-18 12:24:38 +08:00
Move elfXX_r_info/elfXX_r_sym to elfcode.h.
2010-12-30 H.J. Lu <hongjiu.lu@intel.com> * elfcode.h (NAME(elf,r_info)): New. (NAME(elf,r_sym)): Likewise. * elflink.c (elf64_r_info): Removed. (elf32_r_info): Likewise. (elf64_r_sym): Likewise. (elf32_r_sym): Likewise.
This commit is contained in:
parent
c543bf9aab
commit
a836572f89
@ -1,3 +1,13 @@
|
||||
2010-12-30 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
* elfcode.h (NAME(elf,r_info)): New.
|
||||
(NAME(elf,r_sym)): Likewise.
|
||||
|
||||
* elflink.c (elf64_r_info): Removed.
|
||||
(elf32_r_info): Likewise.
|
||||
(elf64_r_sym): Likewise.
|
||||
(elf32_r_sym): Likewise.
|
||||
|
||||
2010-12-30 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
* elf64-x86-64.c (elf_x86_64_relocs_compatible): New.
|
||||
|
@ -1855,6 +1855,22 @@ NAME(_bfd_elf,bfd_from_remote_memory)
|
||||
*loadbasep = loadbase;
|
||||
return nbfd;
|
||||
}
|
||||
|
||||
/* Function for ELF_R_INFO. */
|
||||
|
||||
bfd_vma
|
||||
NAME(elf,r_info) (bfd_vma sym, bfd_vma type)
|
||||
{
|
||||
return ELF_R_INFO (sym, type);
|
||||
}
|
||||
|
||||
/* Function for ELF_R_SYM. */
|
||||
|
||||
bfd_vma
|
||||
NAME(elf,r_sym) (bfd_vma r_info)
|
||||
{
|
||||
return ELF_R_SYM (r_info);
|
||||
}
|
||||
|
||||
#include "elfcore.h"
|
||||
|
||||
|
@ -12751,35 +12751,3 @@ elf_append_rel (bfd *abfd, asection *s, Elf_Internal_Rela *rel)
|
||||
BFD_ASSERT (loc + bed->s->sizeof_rel <= s->contents + s->size);
|
||||
bed->s->swap_reloca_out (abfd, rel, loc);
|
||||
}
|
||||
|
||||
/* Function for ELF64_R_INFO. */
|
||||
|
||||
bfd_vma
|
||||
elf64_r_info (bfd_vma sym, bfd_vma type)
|
||||
{
|
||||
return ELF64_R_INFO (sym, type);
|
||||
}
|
||||
|
||||
/* Function for ELF32_R_INFO. */
|
||||
|
||||
bfd_vma
|
||||
elf32_r_info (bfd_vma sym, bfd_vma type)
|
||||
{
|
||||
return ELF32_R_INFO (sym, type);
|
||||
}
|
||||
|
||||
/* Function for ELF64_R_SYM . */
|
||||
|
||||
bfd_vma
|
||||
elf64_r_sym (bfd_vma r_info)
|
||||
{
|
||||
return ELF64_R_SYM (r_info);
|
||||
}
|
||||
|
||||
/* Function for ELF32_R_SYM . */
|
||||
|
||||
bfd_vma
|
||||
elf32_r_sym (bfd_vma r_info)
|
||||
{
|
||||
return ELF32_R_SYM (r_info);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user