epiphany: Additional setjmp() and longjmp() syms

Message ID 20180131071738.27362-1-sebastian.huber@embedded-brains.de
State Accepted
Commit 1658a57715de93d50983f34e75216101eb373993
Headers show
Series
  • epiphany: Additional setjmp() and longjmp() syms
Related show

Commit Message

Sebastian Huber Jan. 31, 2018, 7:17 a.m.
At least with Binutils 2.30 and GCC 7.3 we need symbol definitions
without the leading underscore.

Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>

---
 newlib/libc/machine/epiphany/setjmp.S | 4 ++++
 1 file changed, 4 insertions(+)

-- 
2.12.3

Comments

Corinna Vinschen Jan. 31, 2018, 9:16 a.m. | #1
On Jan 31 08:17, Sebastian Huber wrote:
> At least with Binutils 2.30 and GCC 7.3 we need symbol definitions

> without the leading underscore.

> 

> Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>

> ---

>  newlib/libc/machine/epiphany/setjmp.S | 4 ++++

>  1 file changed, 4 insertions(+)

> 

> diff --git a/newlib/libc/machine/epiphany/setjmp.S b/newlib/libc/machine/epiphany/setjmp.S

> index 2986bb47a..b981ee51e 100644

> --- a/newlib/libc/machine/epiphany/setjmp.S

> +++ b/newlib/libc/machine/epiphany/setjmp.S

> @@ -45,6 +45,8 @@ _setjmp:

>  	mov r0,#0

>  	rts

>  	.size _setjmp, .-_setjmp

> +	.global setjmp

> +	.set setjmp, _setjmp

>  

>  	.global _longjmp

>  _longjmp:

> @@ -63,3 +65,5 @@ _longjmp:

>  	movne r0,r1

>  	jr lr

>          .size   _longjmp, .-_longjmp

> +	.global longjmp

> +	.set longjmp, _longjmp

> -- 

> 2.12.3


ACK


Thanks,
Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
Red Hat

Patch

diff --git a/newlib/libc/machine/epiphany/setjmp.S b/newlib/libc/machine/epiphany/setjmp.S
index 2986bb47a..b981ee51e 100644
--- a/newlib/libc/machine/epiphany/setjmp.S
+++ b/newlib/libc/machine/epiphany/setjmp.S
@@ -45,6 +45,8 @@  _setjmp:
 	mov r0,#0
 	rts
 	.size _setjmp, .-_setjmp
+	.global setjmp
+	.set setjmp, _setjmp
 
 	.global _longjmp
 _longjmp:
@@ -63,3 +65,5 @@  _longjmp:
 	movne r0,r1
 	jr lr
         .size   _longjmp, .-_longjmp
+	.global longjmp
+	.set longjmp, _longjmp