[Bug libc/26173] New: powerpc64*: Add @notoc to calls to functions that do not preserve r2

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug libc/26173] New: powerpc64*: Add @notoc to calls to functions that do not preserve r2

Sourceware - glibc-bugs mailing list
https://sourceware.org/bugzilla/show_bug.cgi?id=26173

            Bug ID: 26173
           Summary: powerpc64*: Add @notoc to calls to functions that do
                    not preserve r2
           Product: glibc
           Version: 2.32
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: tuliom at ascii dot art.br
                CC: drepper.fsp at gmail dot com
  Target Milestone: ---

The latest linker version started to report calls from functions that are
expected to preserve r2 to functions that do not preserve r2, causing build
failures in glibc, e.g.:

sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S:163:(.text+0xfc): call
to `__GI_exit' lacks nop, can't restore toc; (toc save/adjust stub)

More details are available in Binutils bug #26164.

--
You are receiving this mail because:
You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|

[Bug libc/26173] powerpc64*: Add @notoc to calls to functions that do not preserve r2

Sourceware - glibc-bugs mailing list
https://sourceware.org/bugzilla/show_bug.cgi?id=26173

Tulio Magno Quites Machado Filho <tuliom at ascii dot art.br> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
               Host|                            |powerpc64*
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at sourceware dot org   |tuliom at ascii dot art.br

--
You are receiving this mail because:
You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|

[Bug libc/26173] powerpc64*: Add @notoc to calls to functions that do not preserve r2

Sourceware - glibc-bugs mailing list
In reply to this post by Sourceware - glibc-bugs mailing list
https://sourceware.org/bugzilla/show_bug.cgi?id=26173

--- Comment #1 from Tulio Magno Quites Machado Filho <tuliom at ascii dot art.br> ---
A patch to fix this has been proposed at:
https://patchwork.sourceware.org/project/glibc/patch/20200625230224.301671-1-tuliom@.../

--
You are receiving this mail because:
You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|

[Bug libc/26173] powerpc64*: Add @notoc to calls to functions that do not preserve r2

Sourceware - glibc-bugs mailing list
In reply to this post by Sourceware - glibc-bugs mailing list
https://sourceware.org/bugzilla/show_bug.cgi?id=26173

Tulio Magno Quites Machado Filho <tuliom at ascii dot art.br> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |2.32

--- Comment #2 from Tulio Magno Quites Machado Filho <tuliom at ascii dot art.br> ---
Fixed in 2.32 with:

commit 7c7bcf3634e44cf7e001aaa302138c1ee0e58f8c
Author: Tulio Magno Quites Machado Filho <[hidden email]>
Date:   Fri Jul 10 19:41:06 2020 -0300

    powerpc64: Fix calls when r2 is not used [BZ #26173]

    Teach the linker that __mcount_internal, __sigjmp_save_symbol,
    __syscall_error and __GI_exit do not use r2, so that it does not need to
    recover r2 after the call.

    Test at configure time if the assembler supports @notoc and define
    USE_PPC64_NOTOC.

--
You are receiving this mail because:
You are on the CC list for the bug.