tilegx_elf_grok_prstatus (bfd *abfd, Elf_Internal_Note *note)
{
int offset;
size_t size;
if (note->descsz != TILEGX_PRSTATUS_SIZEOF)
tilegx_elf_grok_prstatus (bfd *abfd, Elf_Internal_Note *note)
{
int offset;
size_t size;
if (note->descsz != TILEGX_PRSTATUS_SIZEOF)
tilegx_elf_grok_psinfo (bfd *abfd, Elf_Internal_Note *note)
{
if (note->descsz != TILEGX_PRPSINFO_SIZEOF)
tilegx_elf_grok_psinfo (bfd *abfd, Elf_Internal_Note *note)
{
if (note->descsz != TILEGX_PRPSINFO_SIZEOF)
= _bfd_elfcore_strndup (abfd, note->descdata + TILEGX_PRPSINFO_OFFSET_PR_PSARGS, ELF_PR_PSARGS_SIZE);
= _bfd_elfcore_strndup (abfd, note->descdata + TILEGX_PRPSINFO_OFFSET_PR_PSARGS, ELF_PR_PSARGS_SIZE);
onto the end of the args in some (at least one anyway)
implementations, so strip it off if it exists. */
{
onto the end of the args in some (at least one anyway)
implementations, so strip it off if it exists. */
{
-#define TARGET_LITTLE_SYM bfd_elf64_tilegx_vec
-#define TARGET_LITTLE_NAME "elf64-tilegx"
+
+#define TARGET_BIG_SYM tilegx_elf64_be_vec
+#define TARGET_BIG_NAME "elf64-tilegx-be"
+#define TARGET_LITTLE_SYM tilegx_elf64_le_vec
+#define TARGET_LITTLE_NAME "elf64-tilegx-le"
#define bfd_elf64_bfd_link_hash_table_create tilegx_elf_link_hash_table_create
#define bfd_elf64_bfd_reloc_type_lookup tilegx_reloc_type_lookup
#define bfd_elf64_bfd_merge_private_bfd_data \
#define bfd_elf64_bfd_link_hash_table_create tilegx_elf_link_hash_table_create
#define bfd_elf64_bfd_reloc_type_lookup tilegx_reloc_type_lookup
#define bfd_elf64_bfd_merge_private_bfd_data \
#define elf_backend_finish_dynamic_symbol tilegx_elf_finish_dynamic_symbol
#define elf_backend_finish_dynamic_sections tilegx_elf_finish_dynamic_sections
#define elf_backend_gc_mark_hook tilegx_elf_gc_mark_hook
#define elf_backend_finish_dynamic_symbol tilegx_elf_finish_dynamic_symbol
#define elf_backend_finish_dynamic_sections tilegx_elf_finish_dynamic_sections
#define elf_backend_gc_mark_hook tilegx_elf_gc_mark_hook
-#define elf_info_to_howto_rel NULL
-#define elf_info_to_howto tilegx_info_to_howto_rela
-#define elf_backend_grok_prstatus tilegx_elf_grok_prstatus
-#define elf_backend_grok_psinfo tilegx_elf_grok_psinfo
+#define elf_info_to_howto_rel NULL
+#define elf_info_to_howto tilegx_info_to_howto_rela
+#define elf_backend_grok_prstatus tilegx_elf_grok_prstatus
+#define elf_backend_grok_psinfo tilegx_elf_grok_psinfo
#define elf_backend_additional_program_headers tilegx_additional_program_headers
#define elf_backend_init_index_section _bfd_elf_init_1_index_section
#define elf_backend_additional_program_headers tilegx_additional_program_headers
#define elf_backend_init_index_section _bfd_elf_init_1_index_section
#define elf_backend_plt_alignment 6
#define elf_backend_want_plt_sym 1
#define elf_backend_got_header_size 8
#define elf_backend_plt_alignment 6
#define elf_backend_want_plt_sym 1
#define elf_backend_got_header_size 8