Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC

Commits:

1 changed file:

Changes:

  • rts/linker/Elf.c
    ... ... @@ -205,7 +205,7 @@ ocInit_ELF(ObjectCode * oc)
    205 205
         oc->info->sectionHeader = (Elf_Shdr *) ((uint8_t*)oc->image
    
    206 206
                                                 + oc->info->elfHeader->e_shoff);
    
    207 207
         oc->info->sectionHeaderStrtab = (char*)((uint8_t*)oc->image +
    
    208
    -            oc->info->sectionHeader[oc->info->elfHeader->e_shstrndx].sh_offset);
    
    208
    +            oc->info->sectionHeader[elf_shstrndx(oc->info->elfHeader)].sh_offset);
    
    209 209
     
    
    210 210
         oc->n_sections = elf_shnum(oc->info->elfHeader);
    
    211 211