[GHC] #10046: Linker script patch in rts/Linker.c doesn't work for (non-C or non-en..) locales

GHC ghc-devs at haskell.org
Sat Sep 5 06:30:39 UTC 2015


#10046: Linker script patch in rts/Linker.c doesn't work for (non-C or non-en..)
locales
-------------------------------------+-------------------------------------
        Reporter:  hgolden           |                   Owner:  simonmar
            Type:  bug               |                  Status:  new
        Priority:  normal            |               Milestone:  7.12.1
       Component:  Runtime System    |                 Version:  7.8.4
  (Linker)                           |                Keywords:  linker
      Resolution:                    |  script
Operating System:  Unknown/Multiple  |            Architecture:
 Type of failure:  Incorrect result  |  Unknown/Multiple
  at runtime                         |               Test Case:
      Blocked By:                    |                Blocking:
 Related Tickets:  2615, 9237        |  Differential Revisions:
-------------------------------------+-------------------------------------

Comment (by ezyang):

 hgolden, I actually am having difficulty running your script and
 reproducing the same output. There are two problems. First, the path that
 is in your example doesn't exist on my system. There are a few possible
 candidates: `/usr/lib/x86_64-linux-gnu/libc.so` is a linker script that
 has contents

 {{{
 /* GNU ld script
    Use the shared library, but some functions are only in
    the static library, so try that secondarily.  */
 OUTPUT_FORMAT(elf64-x86-64)
 GROUP ( /lib/x86_64-linux-gnu/libc.so.6 /usr/lib/x86_64-linux-
 gnu/libc_nonshared.a  AS_NEEDED ( /lib/x86_64-linux-gnu/ld-
 linux-x86-64.so.2 ) )
 }}}

 Then, when I run the script compiled by GHC 7.6.3, I get `Nothing`. So I
 can't seem to coax out the Chinese output.

 BTW, in GHC 7.10 you need to initialize the object linker, otherwise it
 will segfault.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10046#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list