Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F148381362
D49206.1786551441.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
775 B
Referenced Files
None
Subscribers
None
D49206.1786551441.diff
View Options
diff --git a/lib/csu/amd64/crt1_s.S b/lib/csu/amd64/crt1_s.S
--- a/lib/csu/amd64/crt1_s.S
+++ b/lib/csu/amd64/crt1_s.S
@@ -49,15 +49,12 @@
#ifdef GCRT
subq $16, %rsp
#endif
- movq %rsi, %rcx
- movq %rdi, %rsi /* argv = ap */
- addq $8, %rsi /* argv += 1 */
- movq %rdi, %rdx /* env = ap */
- addq $16, %rdx /* env += 2 */
- movslq (%rdi), %rax
- movl %eax, %edi /* argc = *(long *)(void *)ap */
- shlq $3, %rax
- addq %rax, %rdx /* env += argc */
+ movq %rsi, %rcx /* cleanup */
+ movslq (%rdi), %rax /* long *ap; tmpargc = *ap */
+ leaq 0x8(%rdi), %rsi /* argv = ap + 1 */
+ leaq 0x10(%rdi, %rax, 8), %rdx /* env = ap + 2 + tmpargc */
+ movl %eax, %edi /* argc = tmpargc */
+
#ifdef PIC
/*
* XXX. %rip relative addressing is not intended for use in the
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Aug 12, 4:17 PM (21 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29399610
Default Alt Text
D49206.1786551441.diff (775 B)
Attached To
Mode
D49206: amd64 csu: microoptimize startup
Attached
Detach File
Event Timeline
Log In to Comment