liballocs
liballocs copied to clipboard
allocscompilerwrapper.py puts defsyms too late when wrapping in-exe malloc
The malloc-in-exe test case hacks around this with its own LDFLAGS in mk.inc. But without these, the __wrap___real_malloc and friends are being defined (in liballocs_nonshared.a) too early on the command line to be picked up by the defsym options which want to bind to them.
I meant to say 'defined too late', of course (or referenced too early).
This got tweaked in 9a7a29c since the CircleCI box had different linker version/behaviour. We needed to split the defsyms up from the -lallocs (to keep the latter towards the end of the command line), making the compiler wrapper Python script even more nasty.
This was fixed in 0ed8eafd.