Simon Marlow schrieb: > Christian Maeder wrote: >> Simon Marlow schrieb: [...] >>> I guess we should just eliminate the .size directives if the linker is >>> going to be picky about them. In ghc-asm.lprl you'll find >>> >>> $T_COPY_DIRVS = '^\s*\.(globl|type|size|local)'; >>> >>> if you change it to >>> >>> $T_COPY_DIRVS = '^\s*\.(globl|local)'; [...] > Should be ok, yes. The .size and .type information is only used when > linking dynamically (at least on platforms I'm familiar with, which > doesn't include Solaris), and we're only using static libraries here. > > It might be more correct for _info symbols to get .type function, since > they're followed by code. I don't think we should worry about this though.
Ok, I've created a binary dist with this change, but I cannot test it with Solaris 11 linkers, currently. http://www.informatik.uni-bremen.de/agbkb/forschung/formal_methods/CoFI/hets/pc-solaris/versions/new-ghc-6.6.1-i386-unknown-solaris2.tar.bz2 Rod (or Stefan) could you try to test this distribution with your various linkers as follows: cd ghc-6.6.1 ./configure --prefix=$HOME/ghc-6.6.1 gmake install export PATH=$HOME/ghc-6.6.1/bin:$PATH ghc --make hello.hs where hello.hs contains: main = putStrLn "hello" I expect Rod's modified linker to just emit a warning and the Solaris 11 linker (ld 5.11-1.555) still to fail. Cheers Christian _______________________________________________ Glasgow-haskell-bugs mailing list [email protected] http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
