Generate RelocatableReadOnlyData as .data
authorClemens Fruhwirth <clemens@endorphin.org>
Wed, 27 Jun 2007 16:06:40 +0000 (16:06 +0000)
committerClemens Fruhwirth <clemens@endorphin.org>
Wed, 27 Jun 2007 16:06:40 +0000 (16:06 +0000)
commit8cce5c2e09f2a1b7b443cdef0ede5593cc6e7f60
tree75702ee0406c93eb28e1716319fc3c88e37c511f
parent36767013af1bc178b2480ae99041b9bdabaebe86
Generate RelocatableReadOnlyData as .data

The GNU linker expects read-only sections to be relocation
free. Presumably because the dynamic linker maps all read-only
sections as read-only mmaps and hence can't do relocations.

If we want text-relocation-free shared libraries we have to put all
relocations into writable sections, hence .data.  See
http://www.mail-archive.com/cvs-all@haskell.org/msg15119.html
compiler/nativeGen/PprMach.hs