projects
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f2fe0e
)
submitted-start-cfi
author
GNU Libc Maintainers
<debian-glibc@lists.debian.org>
Wed, 5 Dec 2018 18:50:21 +0000
(18:50 +0000)
committer
Aurelien Jarno
<aurel32@debian.org>
Wed, 5 Dec 2018 18:50:21 +0000
(18:50 +0000)
2018-05-18 Palmer Dabbelt <palmer@sifive.com>
PR 23125
* sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined so
backtraces can terminate if they reach this point.
Gbp-Pq: Topic riscv64
Gbp-Pq: Name submitted-start-cfi.diff
sysdeps/riscv/start.S
patch
|
blob
|
history
diff --git
a/sysdeps/riscv/start.S
b/sysdeps/riscv/start.S
index 4635ddb5eb8c54156bbe576d05ca45599927cd5f..93a80bc4a760021b7a8065e996758ed2ad9c81bc 100644
(file)
--- a/
sysdeps/riscv/start.S
+++ b/
sysdeps/riscv/start.S
@@
-43,6
+43,8
@@
__libc_start_main wants this in a5. */
ENTRY (ENTRY_POINT)
+ /* Mark ra as undefined in order to stop unwinding here! */
+ cfi_undefined (ra)
call .Lload_gp
mv a5, a0 /* rtld_fini. */
/* main may be in a shared library. */