[project @ 2005-01-23 18:50:40 by wolfgang]
authorwolfgang <unknown>
Sun, 23 Jan 2005 18:50:45 +0000 (18:50 +0000)
committerwolfgang <unknown>
Sun, 23 Jan 2005 18:50:45 +0000 (18:50 +0000)
commite171a977fee973066ab0fd871a6b8ac9cfe20a58
tree72660d4ddf7d7eaf3e6031c6d2e2cf93a47c1d50
parent3463d1d3725bd4ec70acb2656ff20571b9b59294
[project @ 2005-01-23 18:50:40 by wolfgang]
Make the NCG distinguish between the read-only data section and the
"relocatable read-only data" section.
Read-only data is supposed to be _really_ read-only, whereas "relrodata"
can have relocations, but should not be modified by the program at runtime.

For Linux, put relrodata into ".data" by default, as the dynamic linker
tends to do evil things to avoid relocating things in read-only sections.
ghc/compiler/cmm/Cmm.hs
ghc/compiler/cmm/PprCmm.hs
ghc/compiler/codeGen/CgUtils.hs
ghc/compiler/nativeGen/MachCodeGen.hs
ghc/compiler/nativeGen/PprMach.hs