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

            Bug ID: 69280
           Summary: Where did -fno-plt go?
           Product: gcc
           Version: 5.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
          Assignee: unassigned at gcc dot gnu.org
          Reporter: felix-gcc at fefe dot de
  Target Milestone: ---

I was looking for a way to create statically linked PIE ELF binaries under
Linux.

Since these are statically linked and have no shared library, I am looking for
a way to tell gcc to not use GOT or PLT for symbol lookup. Just use PC-relative
addressing and assume all referenced symbols are local to this shared object.

When googling, I found a page in the official gcc documentation online
mentioning -fno-plt:

https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html

This appears to be from an older gcc version? My local gcc 5.3 does not
recognize the option.

Am I supposed to use -fvisibility now for this?

Thanks,

Felix

Reply via email to