Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
PLT avoidance for _exit in rtld.
  • Loading branch information
Roland McGrath committed Jul 9, 2015
1 parent 2eb9ef2 commit af85d40
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ChangeLog
@@ -1,3 +1,12 @@
2015-07-09 Roland McGrath <roland@hack.frob.com>

* include/unistd.h: Add rtld_hidden_proto for _exit.
* posix/_exit.c: Add rtld_hidden_def.
* sysdeps/mach/hurd/_exit.c: Likewise.
* sysdeps/nacl/_exit.c: Likewise.
* sysdeps/unix/sysv/linux/_exit.c: Likewise.
* sysdeps/unix/sysv/linux/i386/_exit.S: Likewise.

2015-07-09 H.J. Lu <hongjiu.lu@intel.com>

* sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Improve
Expand Down
1 change: 1 addition & 0 deletions include/unistd.h
Expand Up @@ -5,6 +5,7 @@
__BEGIN_DECLS

libc_hidden_proto (_exit, __noreturn__)
rtld_hidden_proto (_exit, __noreturn__)
libc_hidden_proto (alarm)
libc_hidden_proto (confstr)
libc_hidden_proto (execl)
Expand Down
1 change: 1 addition & 0 deletions posix/_exit.c
Expand Up @@ -29,6 +29,7 @@ _exit (status)
abort ();
}
libc_hidden_def (_exit)
rtld_hidden_def (_exit)
weak_alias (_exit, _Exit)

stub_warning (_exit)
1 change: 1 addition & 0 deletions sysdeps/mach/hurd/_exit.c
Expand Up @@ -52,4 +52,5 @@ _exit (status)
_hurd_exit (W_EXITCODE (status, 0));
}
libc_hidden_def (_exit)
rtld_hidden_def (_exit)
weak_alias (_exit, _Exit)
1 change: 1 addition & 0 deletions sysdeps/nacl/_exit.c
Expand Up @@ -31,4 +31,5 @@ _exit (int status)
__builtin_trap ();
}
libc_hidden_def (_exit)
rtld_hidden_def (_exit)
weak_alias (_exit, _Exit)
1 change: 1 addition & 0 deletions sysdeps/unix/sysv/linux/_exit.c
Expand Up @@ -39,4 +39,5 @@ _exit (status)
}
}
libc_hidden_def (_exit)
rtld_hidden_def (_exit)
weak_alias (_exit, _Exit)
1 change: 1 addition & 0 deletions sysdeps/unix/sysv/linux/i386/_exit.S
Expand Up @@ -40,4 +40,5 @@ _exit:
.size _exit,.-_exit

libc_hidden_def (_exit)
rtld_hidden_def (_exit)
weak_alias (_exit, _Exit)

0 comments on commit af85d40

Please sign in to comment.