[GHC] #14291: Tests tend to fail in the ext-interp way when split sections is enabled
GHC
ghc-devs at haskell.org
Thu Oct 5 16:27:38 UTC 2017
#14291: Tests tend to fail in the ext-interp way when split sections is enabled
-------------------------------------+-------------------------------------
Reporter: bgamari | Owner: (none)
Type: bug | Status: new
Priority: normal | Milestone: 8.4.1
Component: Compiler | Version: 8.2.1
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking: 13716
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by hsyl20):
Replying to [comment:9 bgamari]:
> So I plugged away at this a bit today. I'm increasingly suspicious of
1c83fd814b12754be8af211a387cec906ca198b3 which touches a large amount of
ELF linker logic. Unfortunately it's not terribly easy to revert.
I don't know if it is related to this bug but the patch you mention has
introduced the
[https://git.haskell.org/ghc.git/blob/1c83fd814b12754be8af211a387cec906ca198b3:/rts/linker/Elf.c#l182
following line]:
{{{#!hs
oc->info->sectionHeaderStrtab = (char*)((uint8_t*)oc->image +
oc->info->sectionHeader[oc->info->elfHeader->e_shstrndx].sh_offset);
}}}
which may be wrong when there are too many sections (splitSections...).
Could you try replacing `oc->info->elfHeader->e_shstrndx` with
`elf_shstrndx(oc->info->elfHeader)`?
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14291#comment:25>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list