summary refs log tree commit diff
path: root/sysdeps/x86_64/dl-machine.h
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2014-12-21 05:27:31 -0800
committerH.J. Lu <hjl.tools@gmail.com>2014-12-21 05:27:31 -0800
commit7432d613cd1fefc833800c7af9538d8d81d5c6b2 (patch)
treeee06c598355904c564b1cde715ad280eaeec35cd /sysdeps/x86_64/dl-machine.h
parent98fe149e34b48d0c4d69105315cc7c61be8276ec (diff)
downloadglibc-7432d613cd1fefc833800c7af9538d8d81d5c6b2.tar.gz
glibc-7432d613cd1fefc833800c7af9538d8d81d5c6b2.tar.xz
glibc-7432d613cd1fefc833800c7af9538d8d81d5c6b2.zip
Remove @PLT from "call _dl_init@PLT" in _dl_start_user
_dl_start_user in ld.so calls the local function _dl_init.  There is no
need to go through PLT.

	* sysdeps/i386/dl-machine.h (_dl_start_user): Remove @PLT
	from "call _dl_init@PLT".
	* sysdeps/x86_64/dl-machine.h (_dl_start_user): Likewise.
	from "call _dl_init@PLT".
Diffstat (limited to 'sysdeps/x86_64/dl-machine.h')
-rw-r--r--sysdeps/x86_64/dl-machine.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/x86_64/dl-machine.h b/sysdeps/x86_64/dl-machine.h
index 8316f13a06..5e1bb07b90 100644
--- a/sysdeps/x86_64/dl-machine.h
+++ b/sysdeps/x86_64/dl-machine.h
@@ -156,7 +156,7 @@ _dl_start_user:\n\
 	# Clear %rbp to mark outermost frame obviously even for constructors.\n\
 	xorl %ebp, %ebp\n\
 	# Call the function to run the initializers.\n\
-	call _dl_init@PLT\n\
+	call _dl_init\n\
 	# Pass our finalizer function to the user in %rdx, as per ELF ABI.\n\
 	leaq _dl_fini(%rip), %rdx\n\
 	# And make sure %rsp points to argc stored on the stack.\n\