[GHC] #8790: rts: unrust 'libbfd' debug symbols parser
GHC
ghc-devs at haskell.org
Mon Feb 17 09:42:34 UTC 2014
#8790: rts: unrust 'libbfd' debug symbols parser
----------------------------+----------------------------------------------
Reporter: slyfox | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: | Version: 7.6.3
Compiler | Keywords:
Resolution: | Architecture: Unknown/Multiple
Operating System: | Difficulty: Moderate (less than a day)
Unknown/Multiple | Blocked By:
Type of failure: | Related Tickets:
None/Unknown |
Test Case: |
Blocking: |
----------------------------+----------------------------------------------
Comment (by slyfox):
I think to make it work properly we need to use real code used by ghc with
AC_TRY_LINK.
Something like that:
{{{
AC_TRY_LINK([#include <libbfd.h>
#include "mk/config.h"],
[
/* some ghc code using bfd_check_format_matches,
bfd_get_symtab_upper_bound, etc */
])
}}}
That way the ./configure linker will try to use the same bfd parts as real
code.
I'd also like to:
- add a manual knob to enable/disable 'bfd' depend
- fix memory leak introduced by symbol loading (by unloading them)
Does all this sound sane?
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8790#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list