https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85492
--- Comment #10 from Andrew Waterman ---
Thanks for the suggestion. Let's go with the CFI-directive approach.
On Sat, Apr 28, 2018 at 5:45 AM, aurelien at aurel32 dot net
wrote:
>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85492
Aurelien Jarno changed:
What|Removed |Added
Status|NEW |RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85492
--- Comment #8 from Jim Wilson ---
(In reply to Aurelien Jarno from comment #7)
> Should I just close this bug and open a new one on the glibc side?
That is fine if you want to do that.
> + /* Mark ra as undefined in order to stop
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85492
--- Comment #7 from Aurelien Jarno ---
(In reply to Jim Wilson from comment #3)
Thanks a lot Jim for finding out the issue without using gdb, that was quite a
challenge.
(In reply to Jim Wilson from comment #6)
> I suggest you handle the glibc
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85492
--- Comment #6 from Jim Wilson ---
I suggest you handle the glibc patch.
Note that you can probably also fix this by adding unwind direcives to _start
to say that the return address is in x0. This would avoid the minor code size
increase, but
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85492
--- Comment #5 from palmer at gcc dot gnu.org ---
Thanks Jim. This looks good to me, are you comfortable submitting glibc
patches? If so then I'll commit it, otherwise I can send it out myself.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85492
--- Comment #4 from Jim Wilson ---
Created attachment 44032
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44032=edit
proposed glibc patch to fix the problem
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85492
--- Comment #3 from Jim Wilson ---
I figured out that I wasn't fully rebuilding and relinking all libraries while
trying to debug this with printf, and that sent me down the wrong path.
Trying this again, correctly, I see that we have a loop in
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85492
palmer at gcc dot gnu.org changed:
What|Removed |Added
CC||palmer at gcc dot gnu.org