about summary refs log tree commit diff
path: root/sysdeps/m68k
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@linux-m68k.org>2022-06-24 21:24:40 +0200
committerAndreas Schwab <schwab@linux-m68k.org>2022-06-25 00:22:02 +0200
commit01c60dc90ca404c153d51f0ddc3b5fe36d3c1099 (patch)
tree6e032e1523949c7ed33fcffdf76ed20497a5cbf7 /sysdeps/m68k
parentbaf2a265c71113a91f6971313ef191be9e77ef6a (diff)
downloadglibc-01c60dc90ca404c153d51f0ddc3b5fe36d3c1099.tar.gz
glibc-01c60dc90ca404c153d51f0ddc3b5fe36d3c1099.tar.xz
glibc-01c60dc90ca404c153d51f0ddc3b5fe36d3c1099.zip
m68k: optimize RTLD_START
Diffstat (limited to 'sysdeps/m68k')
-rw-r--r--sysdeps/m68k/dl-machine.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/sysdeps/m68k/dl-machine.h b/sysdeps/m68k/dl-machine.h
index 64b9fe0b71..b670df5d8b 100644
--- a/sysdeps/m68k/dl-machine.h
+++ b/sysdeps/m68k/dl-machine.h
@@ -142,10 +142,8 @@ _start:\n\
 _dl_start_user:\n\
 	| Save the user entry point address in %a4.\n\
 	move.l %d0, %a4\n\
-	| Pop the original argument count\n\
-	move.l (%sp)+, %d1\n\
-	| Push back the modified argument count.\n\
-	move.l %d1, -(%sp)\n\
+	| Load the adjusted argument count.\n\
+	move.l (%sp), %d1\n\
 	# Call _dl_init (struct link_map *main_map, int argc, char **argv, char **env)\n\
 	pea 8(%sp, %d1*4)\n\
 	pea 8(%sp)\n\