Skip to content

Commit

Permalink
Replace "jmp L(pseudo_end)" with "ret"
Browse files Browse the repository at this point in the history
  • Loading branch information
H.J. Lu committed May 23, 2012
1 parent 8caf8c8 commit 5e292e4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
7 changes: 7 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
2012-05-23 H.J. Lu <hongjiu.lu@intel.com>

* sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
Replace "jmp L(pseudo_end)" with "ret".
* sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
Likewise.

2012-05-23 Andreas Jaeger <aj@suse.de>

* sysdeps/unix/sysv/linux/syscalls.list: Add poll.
Expand Down
6 changes: 3 additions & 3 deletions sysdeps/unix/sysv/linux/i386/sysdep.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
negl %eax; \
movl %eax, rtld_errno@GOTOFF(%ecx); \
orl $-1, %eax; \
jmp L(pseudo_end);
ret;

# elif defined _LIBC_REENTRANT

Expand All @@ -131,7 +131,7 @@
negl %eax; \
SYSCALL_ERROR_HANDLER_TLS_STORE (%eax, %ecx); \
orl $-1, %eax; \
jmp L(pseudo_end);
ret;
# ifndef NO_TLS_DIRECT_SEG_REFS
# define SYSCALL_ERROR_HANDLER_TLS_STORE(src, destoff) \
movl src, %gs:(destoff)
Expand All @@ -149,7 +149,7 @@
movl errno@GOT(%ecx), %ecx; \
movl %eax, (%ecx); \
orl $-1, %eax; \
jmp L(pseudo_end);
ret;
# endif /* _LIBC_REENTRANT */
#endif /* PIC */

Expand Down
2 changes: 1 addition & 1 deletion sysdeps/unix/sysv/linux/x86_64/sysdep.h
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@
0: \
SYSCALL_SET_ERRNO; \
or $-1, %RAX_LP; \
jmp L(pseudo_end);
ret;
# endif /* PIC */

/* The Linux/x86-64 kernel expects the system call parameters in
Expand Down

0 comments on commit 5e292e4

Please sign in to comment.