[GHC] #11022: Invalid ELF "note" section format

#11022: Invalid ELF "note" section format ----------------------------------------+--------------------------- Reporter: hsyl20 | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Driver | Version: 7.10.2 Keywords: | Operating System: POSIX Architecture: Unknown/Multiple | Type of failure: Other Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: ----------------------------------------+--------------------------- 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? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11022 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11022: Invalid ELF "note" section format ---------------------------+---------------------------------------- Reporter: hsyl20 | Owner: Type: bug | Status: new Priority: normal | Milestone: 8.0.1 Component: Driver | Version: 7.10.2 Resolution: | Keywords: Operating System: POSIX | Architecture: Unknown/Multiple Type of failure: Other | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | ---------------------------+---------------------------------------- Changes (by bgamari): * milestone: => 8.0.1 Comment: Sounds like the right thing to do. Are you offering a patch? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11022#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11022: Invalid ELF "note" section format ---------------------------+---------------------------------------- Reporter: hsyl20 | Owner: Type: bug | Status: new Priority: normal | Milestone: 8.0.1 Component: Driver | Version: 7.10.2 Resolution: | Keywords: Operating System: POSIX | Architecture: Unknown/Multiple Type of failure: Other | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | ---------------------------+---------------------------------------- Changes (by hsyl20): * Attachment "0001-driver-use-PROGBITS-type-for-.debug-ghc-link-info- se.patch" added. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11022 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11022: Invalid ELF "note" section format ---------------------------+---------------------------------------- Reporter: hsyl20 | Owner: Type: bug | Status: patch Priority: normal | Milestone: 8.0.1 Component: Driver | Version: 7.10.2 Resolution: | Keywords: Operating System: POSIX | Architecture: Unknown/Multiple Type of failure: Other | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | ---------------------------+---------------------------------------- Changes (by hsyl20): * status: new => patch -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11022#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11022: Invalid ELF "note" section format ---------------------------+---------------------------------------- Reporter: hsyl20 | Owner: Type: bug | Status: patch Priority: normal | Milestone: 8.0.1 Component: Driver | Version: 7.10.2 Resolution: | Keywords: Operating System: POSIX | Architecture: Unknown/Multiple Type of failure: Other | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D1375 Wiki Page: | ---------------------------+---------------------------------------- Changes (by bgamari): * differential: => Phab:D1375 Comment: I've pushed this patch up to Phabricator as Phab:D1375 and written a bit more descriptive commit message. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11022#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11022: Invalid ELF "note" section format
---------------------------+----------------------------------------
Reporter: hsyl20 | Owner:
Type: bug | Status: patch
Priority: normal | Milestone: 8.0.1
Component: Driver | Version: 7.10.2
Resolution: | Keywords:
Operating System: POSIX | Architecture: Unknown/Multiple
Type of failure: Other | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s): Phab:D1375
Wiki Page: |
---------------------------+----------------------------------------
Comment (by Ben Gamari

#11022: Invalid ELF "note" section format ---------------------------+---------------------------------------- Reporter: hsyl20 | Owner: Type: bug | Status: closed Priority: normal | Milestone: 8.0.1 Component: Driver | Version: 7.10.2 Resolution: fixed | Keywords: Operating System: POSIX | Architecture: Unknown/Multiple Type of failure: Other | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D1375 Wiki Page: | ---------------------------+---------------------------------------- Changes (by bgamari): * status: patch => closed * resolution: => fixed Comment: Fixed. Thanks hsyl20! -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11022#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11022: Invalid ELF "note" section format
---------------------------+----------------------------------------
Reporter: hsyl20 | Owner:
Type: bug | Status: closed
Priority: normal | Milestone: 8.0.1
Component: Driver | Version: 7.10.2
Resolution: fixed | Keywords:
Operating System: POSIX | Architecture: Unknown/Multiple
Type of failure: Other | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s): Phab:D1375
Wiki Page: |
---------------------------+----------------------------------------
Comment (by Ben Gamari

#11022: Invalid ELF "note" section format
---------------------------+----------------------------------------
Reporter: hsyl20 | Owner:
Type: bug | Status: closed
Priority: normal | Milestone: 8.0.1
Component: Driver | Version: 7.10.2
Resolution: fixed | Keywords:
Operating System: POSIX | Architecture: Unknown/Multiple
Type of failure: Other | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s): Phab:D1375
Wiki Page: |
---------------------------+----------------------------------------
Comment (by Ben Gamari

#11022: Invalid ELF "note" section format ---------------------------+---------------------------------------- Reporter: hsyl20 | Owner: Type: bug | Status: closed Priority: normal | Milestone: 8.0.1 Component: Driver | Version: 7.10.2 Resolution: fixed | Keywords: Operating System: POSIX | Architecture: Unknown/Multiple Type of failure: Other | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D1375 Wiki Page: | ---------------------------+---------------------------------------- Comment (by bgamari): I've also had to disable this test on ARM due to differences in the assembly syntax. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11022#comment:8 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11022: Invalid ELF "note" section format
---------------------------+----------------------------------------
Reporter: hsyl20 | Owner:
Type: bug | Status: closed
Priority: normal | Milestone: 8.0.1
Component: Driver | Version: 7.10.2
Resolution: fixed | Keywords:
Operating System: POSIX | Architecture: Unknown/Multiple
Type of failure: Other | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s): Phab:D1375
Wiki Page: |
---------------------------+----------------------------------------
Comment (by Ben Gamari
participants (1)
-
GHC