#11022 closed bug (fixed)
Invalid ELF "note" section format
Reported by: | hsyl20 | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | 8.0.1 |
Component: | Driver | Version: | 7.10.2 |
Keywords: | Cc: | ||
Operating System: | POSIX | Architecture: | Unknown/Multiple |
Type of failure: | Other | Test Case: | |
Blocked By: | Blocking: | ||
Related Tickets: | Differential Rev(s): | Phab:D1375 | |
Wiki Page: |
Description
GHC adds a section called ".debug-ghc-link-info" to ELF binaries (see compiler/main/DriverPipeline.hs:1660). The section type is "note" (SHT_NOTE) but the format is not compliant with the ELF specification (see http://refspecs.linuxbase.org/elf/elf.pdf section 2 "Note section"). It makes tools reading sections with "note" type fail.
I think we should change the section type to "progbits". Is there any problem with that?
Attachments (1)
Change History (10)
comment:1 Changed 3 years ago by
Milestone: | → 8.0.1 |
---|
Changed 3 years ago by
Attachment: | 0001-driver-use-PROGBITS-type-for-.debug-ghc-link-info-se.patch added |
---|
comment:2 Changed 3 years ago by
Status: | new → patch |
---|
comment:3 Changed 3 years ago by
Differential Rev(s): | → Phab:D1375 |
---|
I've pushed this patch up to Phabricator as Phab:D1375 and written a bit more descriptive commit message.
comment:8 Changed 2 years ago by
I've also had to disable this test on ARM due to differences in the assembly syntax.
Note: See
TracTickets for help on using
tickets.
Sounds like the right thing to do. Are you offering a patch?