diff options
author | Maciej W. Rozycki <macro@linux-mips.org> | 2012-12-03 16:30:03 +0000 |
---|---|---|
committer | Maciej W. Rozycki <macro@linux-mips.org> | 2012-12-03 16:30:03 +0000 |
commit | a412bee57b96910b7b1e05d9db816a81224a3907 (patch) | |
tree | 365cbe69a67073c423b243db518b1e5721317d2d /bfd | |
parent | bb555ef86069e60f31ac5b9411baeaaad41da18f (diff) | |
download | gdb-a412bee57b96910b7b1e05d9db816a81224a3907.zip gdb-a412bee57b96910b7b1e05d9db816a81224a3907.tar.gz gdb-a412bee57b96910b7b1e05d9db816a81224a3907.tar.bz2 |
* elf32-tilepro.c (tilepro_elf_mkobject): New function.
(bfd_elf32_mkobject): New macro.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/elf32-tilepro.c | 12 |
2 files changed, 17 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index e1e9087..90804e5 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,5 +1,10 @@ 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. * elf64-mips.c (bfd_elf64_mkobject): Likewise. * elfn32-mips.c (bfd_elf32_mkobject): Likewise. diff --git a/bfd/elf32-tilepro.c b/bfd/elf32-tilepro.c index 1c6e3d3..fc49e2b 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 |