Problem on MacOS X - solved

Sebastien Carlier sebc@posse42.net
Thu, 25 Jan 2001 14:12:17 -0800


On OS X the TEXT segment is read only, but since stg_*_info structures
contain a pointer into the TEXT segment, they just can't be put inside
the TEXT segment, because during relocation the code pointer has to be
updated (const data not containing pointers into code are indeed stored
inside the TEXT segment).
So, the assumption that "const" data is in the TEXT segment is unsafe
on OS X...

--
Sebastien

Assembly code generated for stg_forceIO_info:

.globl _stg_forceIO_info
.data
.const_data
        .align 2
_stg_forceIO_info:
        .long 0
...