Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
b3d6bf0d
Commit
b3d6bf0d
authored
Jun 28, 2016
by
Tim Hockin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove old asm pause from third_party
parent
be682148
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
89 deletions
+0
-89
LICENSE
third_party/pause/LICENSE
+0
-19
Makefile
third_party/pause/Makefile
+0
-13
pause.asm
third_party/pause/pause.asm
+0
-57
No files found.
third_party/pause/LICENSE
deleted
100644 → 0
View file @
be682148
The Expat/MIT License
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
third_party/pause/Makefile
deleted
100644 → 0
View file @
be682148
pause
:
pause.asm
ifneq
($(shell
uname),
Linux)
echo
"Must build on Linux"
exit
1
else
nasm
-o
$@
$<
chmod
+x
pause
endif
all
:
pause
clean
:
rm
-f
pause
third_party/pause/pause.asm
deleted
100644 → 0
View file @
be682148
; This is heavily based on https://github.com/tianon/dockerfiles/tree/master/true
; which is in turn especially thanks to:
; http://blog.markloiseau.com/2012/05/tiny-64-bit-elf-executables/
BITS
64
org
0x00400000
; Program load offset
; 64-bit ELF header
ehdr
:
; 1), 0 (ABI ver.)
db
0x7F
,
"ELF"
,
2
,
1
,
1
,
0
; e_ident
times
8
db
0
; reserved (zeroes)
dw
2
; e_type: Executable file
dw
0x3e
; e_machine: AMD64
dd
1
; e_version: current version
dq
_start
; e_entry: program entry address (0x78)
dq
phdr
-
$$
; e_phoff program header offset (0x40)
dq
0
; e_shoff no section headers
dd
0
; e_flags no flags
dw
ehdrsize
; e_ehsize: ELF header size (0x40)
dw
phdrsize
; e_phentsize: program header size (0x38)
dw
1
; e_phnum: one program header
dw
0
; e_shentsize
dw
0
; e_shnum
dw
0
; e_shstrndx
ehdrsize
equ
$
-
ehdr
; 64-bit ELF program header
phdr
:
dd
1
; p_type: loadable segment
dd
5
; p_flags read and execute
dq
0
; p_offset
dq
$$
; p_vaddr: start of the current section
dq
$$
; p_paddr: " "
dq
filesize
; p_filesz
dq
filesize
; p_memsz
dq
0x200000
; p_align: 2^11=200000 = section alignment
; program header size
phdrsize
equ
$
-
phdr
_start
:
; pause()
mov
al
,
34
; pause syscall number
syscall
; sys_exit(return_code)
mov
al
,
60
; sys_exit syscall number
cdq
; Sign-extend eax into edi to return 0 (success)
syscall
; File size calculation
filesize
equ
$
-
$$
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