This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/86435] -fsemantic-interposition does not appear to have any effect
- From: "fw at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 08 Jul 2018 16:04:57 +0000
- Subject: [Bug tree-optimization/86435] -fsemantic-interposition does not appear to have any effect
- Auto-submitted: auto-generated
- References: <bug-86435-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86435
--- Comment #4 from Florian Weimer <fw at gcc dot gnu.org> ---
(In reply to Andreas Schwab from comment #3)
> But the assembler is allowed to resolve the reference directly without the
> possibility for interposition.
Hmm. The assembler would still produce a relocation even if there was a direct
call to a locally defined function. However, the link editor does not appear
to preserve a PLT call in the main program, preventing interposition at link
time.