This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/49012] weak const optimisations
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 16 May 2011 14:13:20 +0000
- Subject: [Bug c/49012] weak const optimisations
- Auto-submitted: auto-generated
- References: <bug-49012-4@http.gcc.gnu.org/bugzilla/>
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.