public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/26173] New: powerpc64*: Add @notoc to calls to functions that do not preserve r2
@ 2020-06-25 19:55 tuliom at ascii dot art.br
2020-06-25 19:56 ` [Bug libc/26173] " tuliom at ascii dot art.br
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: tuliom at ascii dot art.br @ 2020-06-25 19:55 UTC (permalink / raw)
To: glibc-bugs
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libc/26173] powerpc64*: Add @notoc to calls to functions that do not preserve r2
2020-06-25 19:55 [Bug libc/26173] New: powerpc64*: Add @notoc to calls to functions that do not preserve r2 tuliom at ascii dot art.br
@ 2020-06-25 19:56 ` tuliom at ascii dot art.br
2020-06-26 15:17 ` tuliom at ascii dot art.br
2020-07-10 23:11 ` tuliom at ascii dot art.br
2 siblings, 0 replies; 4+ messages in thread
From: tuliom at ascii dot art.br @ 2020-06-25 19:56 UTC (permalink / raw)
To: glibc-bugs
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libc/26173] powerpc64*: Add @notoc to calls to functions that do not preserve r2
2020-06-25 19:55 [Bug libc/26173] New: powerpc64*: Add @notoc to calls to functions that do not preserve r2 tuliom at ascii dot art.br
2020-06-25 19:56 ` [Bug libc/26173] " tuliom at ascii dot art.br
@ 2020-06-26 15:17 ` tuliom at ascii dot art.br
2020-07-10 23:11 ` tuliom at ascii dot art.br
2 siblings, 0 replies; 4+ messages in thread
From: tuliom at ascii dot art.br @ 2020-06-26 15:17 UTC (permalink / raw)
To: glibc-bugs
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@linux.ibm.com/
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libc/26173] powerpc64*: Add @notoc to calls to functions that do not preserve r2
2020-06-25 19:55 [Bug libc/26173] New: powerpc64*: Add @notoc to calls to functions that do not preserve r2 tuliom at ascii dot art.br
2020-06-25 19:56 ` [Bug libc/26173] " tuliom at ascii dot art.br
2020-06-26 15:17 ` tuliom at ascii dot art.br
@ 2020-07-10 23:11 ` tuliom at ascii dot art.br
2 siblings, 0 replies; 4+ messages in thread
From: tuliom at ascii dot art.br @ 2020-07-10 23:11 UTC (permalink / raw)
To: glibc-bugs
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 <tuliom@linux.ibm.com>
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-07-10 23:11 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-25 19:55 [Bug libc/26173] New: powerpc64*: Add @notoc to calls to functions that do not preserve r2 tuliom at ascii dot art.br
2020-06-25 19:56 ` [Bug libc/26173] " tuliom at ascii dot art.br
2020-06-26 15:17 ` tuliom at ascii dot art.br
2020-07-10 23:11 ` tuliom at ascii dot art.br
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).