For example, in C, I have something like this declared:
extern char _binary_res_txt_start[];
It came from this command:
ld -r -b binary -o binary.o res.txt
How can I get a Ptr
in Haskell that points there? If it were a function, I'd do something like foreign import ccall "&exp" a_exp :: FunPtr (Double -> Double)
, but I don't think that works for variables.