https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67532

            Bug ID: 67532
           Summary: Add -fno-plt=file and -fno-plt=[symbol,...]
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hjl.tools at gmail dot com
                CC: tmsriram at google dot com
  Target Milestone: ---

Drawbacks with -fno-plt and noplt attribute are

1. -fno-plt may force locally defined functions to be called via
their GOT slots through indirect branch, instead of direct branch.
2. noplt attribute doesn't work on libcalls of builtin functions.
3. noplt attribute requires modifying source codes which may not
be desirable for third party source packages.

We can add -fno-plt=file and -fno-plt=[symbol,...] options to specify
which external functions should be called via their GOT slots to avoid
PLT.

Reply via email to