* elf32-tilepro.c (tilepro_elf_mkobject): New function.
authorMaciej W. Rozycki <macro@linux-mips.org>
Mon, 3 Dec 2012 16:30:03 +0000 (16:30 +0000)
committerMaciej W. Rozycki <macro@linux-mips.org>
Mon, 3 Dec 2012 16:30:03 +0000 (16:30 +0000)
(bfd_elf32_mkobject): New macro.

bfd/ChangeLog
bfd/elf32-tilepro.c

index e1e9087c487f8c5dc3d8161bf2187c0938bb5acf..90804e5c5c1180196d5ca7407f893cb59100ee5f 100644 (file)
@@ -1,3 +1,8 @@
+2012-12-03  Maciej W. Rozycki  <macro@codesourcery.com>
+
+       * elf32-tilepro.c (tilepro_elf_mkobject): New function.
+       (bfd_elf32_mkobject): New macro.
+
 2012-12-03  Maciej W. Rozycki  <macro@codesourcery.com>
 
        * elf32-mips.c (bfd_elf32_mkobject): New macro.
index 1c6e3d31555dd650d7db05ac15dc2ebb55820b0a..fc49e2b816d8ef7d12e981f01fbfb0273daf38e2 100644 (file)
@@ -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