Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PoroCYon
smol
Commits
29655608
Commit
29655608
authored
Mar 05, 2019
by
PoroCYon
Committed by
PoroCYon
Mar 06, 2019
Browse files
more optimizations (64-bit only for now)
parent
6e2aa414
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/loader64.asm
View file @
29655608
; vim: set ft=nasm:
; TODO: r13 -> something else
; TODO: smaller!!
%define R10_BIAS (0x2B8)
%include "rtld.inc"
...
...
@@ -48,7 +45,6 @@ _smol_start:
mov
rdi
,
r12
push
-
1
pop
rcx
;mov rax, _smol_start
lea
rax
,
[
rel
_smol_start
]
; TODO: make offset positive!
repne
scasq
sub
rdi
,
r12
...
...
@@ -118,7 +114,6 @@ repne scasq
; do {
.next_hash:
; if (!*phash) break;
;lodsq
mov
eax
,
dword
[
rdi
]
or
eax
,
eax
jz
short
.next_needed
; done the last hash, so move to the next lib
...
...
@@ -157,7 +152,6 @@ repne scasq
push
r12
pop
r11
; back up link_map root
.next_hash:
;lodsq
mov
eax
,
dword
[
rdi
]
or
al
,
al
jz
short
.needed_end
...
...
@@ -226,9 +220,6 @@ repne scasq
add
rax
,
rcx
; *phash = finaladdr
;mov [rsi-8], rax
; mov [rsi], rax
; lodsq
stosq
; } while (1)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment