summaryrefslogtreecommitdiff
path: root/rts/linker/Elf.c
diff options
context:
space:
mode:
Diffstat (limited to 'rts/linker/Elf.c')
-rw-r--r--rts/linker/Elf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/rts/linker/Elf.c b/rts/linker/Elf.c
index c1caf9af23..da3e7c69a6 100644
--- a/rts/linker/Elf.c
+++ b/rts/linker/Elf.c
@@ -161,8 +161,8 @@ get_shndx_table(Elf_Ehdr* ehdr)
void
ocInit_ELF(ObjectCode * oc)
{
- oc->info = (ObjectCodeFormatInfo*)stgCallocBytes(
- 1, sizeof(ObjectCodeFormatInfo),
+ oc->info = (struct ObjectCodeFormatInfo*)stgCallocBytes(
+ 1, sizeof *oc->info,
"ocInit_Elf(ObjectCodeFormatInfo)");
// TODO: fill info
oc->info->elfHeader = (Elf_Ehdr *)oc->image;