summaryrefslogtreecommitdiff
path: root/bfd/elf32-tilepro.c
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@linux-mips.org>2012-12-03 16:30:02 +0000
committerMaciej W. Rozycki <macro@linux-mips.org>2012-12-03 16:30:02 +0000
commit33cb715949ad310c5e391e3a0cb89639032cf51f (patch)
treeae801c5f13cdb93161a50fea77f781d9569b08ac /bfd/elf32-tilepro.c
parent53773ae600f2548a357ed8875d1e946f960b91c8 (diff)
downloadbinutils-redhat-33cb715949ad310c5e391e3a0cb89639032cf51f.tar.gz
* elf32-tilepro.c (tilepro_elf_mkobject): New function.
(bfd_elf32_mkobject): New macro.
Diffstat (limited to 'bfd/elf32-tilepro.c')
-rw-r--r--bfd/elf32-tilepro.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/bfd/elf32-tilepro.c b/bfd/elf32-tilepro.c
index 1c6e3d3155..fc49e2b816 100644
--- a/bfd/elf32-tilepro.c
+++ b/bfd/elf32-tilepro.c
@@ -737,6 +737,16 @@ struct _bfd_tilepro_elf_obj_tdata
&& elf_tdata (bfd) != NULL \
&& elf_object_id (bfd) == TILEPRO_ELF_DATA)
+/* Allocate TILEPro ELF private object data. */
+
+static bfd_boolean
+tilepro_elf_mkobject (bfd *abfd)
+{
+ return bfd_elf_allocate_object (abfd,
+ sizeof (struct _bfd_tilepro_elf_obj_tdata),
+ TILEPRO_ELF_DATA);
+}
+
#include "elf/common.h"
#include "elf/internal.h"
@@ -4008,6 +4018,8 @@ tilepro_additional_program_headers (bfd *abfd,
#define elf_backend_grok_psinfo tilepro_elf_grok_psinfo
#define elf_backend_additional_program_headers tilepro_additional_program_headers
+#define bfd_elf32_mkobject tilepro_elf_mkobject
+
#define elf_backend_init_index_section _bfd_elf_init_1_index_section
#define elf_backend_can_gc_sections 1