Charles Davis cdavis@mymail.mines.edu writes:
My first idea was to just add some '.globl' directives in the code. But then I asked myself: why are we using an indirect symbol at all? Why are we treating this like an external symbol when it clearly isn't? So now, the arrays are declared static, and their owning section is explicitly declared to the C compiler. While compile times have gone up, at least the compiled loader executable actually works.
This core dumps instantly when build with gcc on Mac OS 10.5, and doesn't even compile on 10.6.