Skip to content
  • Ken Shan's avatar
    [project @ 2001-07-24 04:45:59 by ken] · a7373b8d
    Ken Shan authored
    Added -static, a flag for compiling on the Alpha that is already
    listed under machdepCCOpts in DriverFlags.hs.  Without it, the
    following assert in GC.c fails:
    
        /* make sure the info pointer is into text space */
        ASSERT(q && (LOOKS_LIKE_GHC_INFO(GET_INFO(q))
                     || IS_HUGS_CONSTR_INFO(GET_INFO(q))));
    
    Added -Xlinker -noprefix_recognition, a flag for Alpha compilation
    that I just added to machdepCCOpts in DriverFlags.hs.  We need
    this flag to disable the following documented behavior of ld(1) on
    Digital UNIX:
    
       All routines that start with __init_ are treated, by default,
       as initialization routines. These are routines that are called
       without an argument when the file that contains them is loaded
       or when the program that contains them is started.
    
    Unfortunately, this flag produces the annoying (but harmless) gcc
    message
    
        gcc: -noprefix_recognition: linker input file unused since
        linking not done
    
    (See also ghc/compiler/main/DriverFlags.hs)
    a7373b8d