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

            Bug ID: 86224
           Summary: [m68k] textrels in libgcc
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libgcc
          Assignee: unassigned at gcc dot gnu.org
          Reporter: bugdal at aerifal dot cx
  Target Milestone: ---

The lb1sf68.S math asm makes calls to its own functions via the PICCALL macro,
which expands to a PC-relative branch. However, the symbols have default
visibilty, and thus are not bound at link-time, leaving R_68K_PC32 textrels in
the output libgcc_s and potentially in PIE programs or shared libraries linked
to the static libgcc.a.

Hidden aliases are probably the best solution. Alternatively the PICCALL macro
could be adjusted to use the @PLT form of the target.

Reply via email to