Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

Add PIC directive #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/copy.asm.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,11 @@ u64toLong_adjust_neg:
<%=name%>_longErr:
push rdi
mov rdi, 0
%ifdef PIC
call <%=name%>_fail WRT ..plt
%else
call <%=name%>_fail
%endif
pop rdi
mov rsp, rbp
pop rdx
Expand Down