http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49012
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-05-16 13:46:10 UTC --- You aren't compiling with -fpic, therefore the weak attribute is there irrelevant - the symbol is known to be defined in the current TU, and for anything that goes into the executable it can't be overridden. Note LD_PRELOAD inserts preloaded lib symbol search scope after executables, not before.