Skip to content

Instantly share code, notes, and snippets.

View akawashiro's full-sized avatar

Akira Kawata akawashiro

View GitHub Profile
$ xxd ./hello_with_whitespace
00000000: 7f45 4c46 0201 0100 0000 0000 0000 0000 .ELF............
00000010: 0200 3e00 0100 0000 3010 4000 0000 0000 ..>.....0.@.....
00000020: 4000 0000 0000 0000 2821 0000 0000 0000 @.......(!......
00000030: 0000 0000 4000 3800 0300 4000 0600 0500 ....@.8...@.....
00000040: 0100 0000 0400 0000 0000 0000 0000 0000 ................
00000050: 0000 4000 0000 0000 0000 4000 0000 0000 ..@.......@.....
00000060: 0010 0000 0000 0000 0010 0000 0000 0000 ................
00000070: 0010 0000 0000 0000 0100 0000 0500 0000 ................
00000080: 0010 0000 0000 0000 0010 4000 0000 0000 ..........@.....
$ xxd hello_syscall_with_parasite
00000000: 7f45 4c46 0201 0100 0000 0000 0000 0000 .ELF............
00000010: 0200 3e00 0100 0000 3010 4000 0000 0000 ..>.....0.@.....
00000020: 4000 0000 0000 0000 3021 0000 0000 0000 @.......0!......
00000030: 0000 0000 4000 3800 0300 4000 0600 0500 ....@.8...@.....
00000040: 0100 0000 0400 0000 0000 0000 0000 0000 ................
00000050: 0000 4000 0000 0000 0000 4000 0000 0000 ..@.......@.....
00000060: e800 0000 0000 0000 e800 0000 0000 0000 ................
00000070: 0010 0000 0000 0000 0100 0000 0500 0000 ................
00000080: 0010 0000 0000 0000 0010 4000 0000 0000 ..........@.....
$ objdump --disassemble=lifegame lifegame -M intel
lifegame: file format elf64-x86-64
Disassembly of section .init:
Disassembly of section .plt:
Disassembly of section .plt.got:
00000000: 7f45 4c46 0201 0100 0000 0000 0000 0000 .ELF............
00000010: 0200 3e00 0100 0000 0010 4000 0000 0000 ..>.......@.....
00000020: 4000 0000 0000 0000 3021 0000 0000 0000 @.......0!......
00000030: 0000 0000 4000 3800 0300 4000 0600 0500 ....@.8...@.....
00000040: 0100 0000 0400 0000 0000 0000 0000 0000 ................
00000050: 0000 4000 0000 0000 0000 4000 0000 0000 ..@.......@.....
00000060: e800 0000 0000 0000 e800 0000 0000 0000 ................
00000070: 0010 0000 0000 0000 0100 0000 0500 0000 ................
00000080: 0010 0000 0000 0000 0010 4000 0000 0000 ..........@.....
00000090: 0010 4000 0000 0000 2700 0000 0000 0000 ..@.....'.......
PS C:\Program Files (x86)\Microsoft Visual Studio\2019\Community> dumpbin /imports C:\Windows\notepad.exe
Microsoft (R) COFF/PE Dumper Version 14.26.28806.0
Copyright (C) Microsoft Corporation. All rights reserved.
Dump of file C:\Windows\notepad.exe
File Type: EXECUTABLE IMAGE
Section contains the following imports:
$ ~/tmp/qemu-install/bin/qemu-aarch64 -d in_asm,out_asm -D ./log ./hello-aarch64 && cat log
Hello, World!
PROLOGUE: [size=45]
0x7f583c000000:
OBJD-H: 55534154415541564157488bef4881c478fbffffffe633c04881c488040000c5
OBJD-H: f877415f415e415d415c5b5dc3
----------------
IN: _start
0x00400580:
$ ./listup_technical_terms.py
offset , 名詞-普通名詞-一般
Google , 名詞-普通名詞-一般
素朴 , 名詞-普通名詞-形状詞可能
char , 名詞-普通名詞-一般
return , 名詞-普通名詞-一般
hwlat , 名詞-普通名詞-一般
call , 名詞-普通名詞-一般
str , 名詞-普通名詞-一般
ちなみ , 名詞-普通名詞-一般
$ ./listup_technical_terms.py
読み込み , 名詞-普通名詞-一般
ダイナミック , 形状詞-一般
chroot , 名詞-普通名詞-一般
作成 , 名詞-普通名詞-サ変可能
ローカル , 名詞-普通名詞-形状詞可能
攻撃 , 名詞-普通名詞-サ変可能
具体 , 名詞-普通名詞-一般
make , 名詞-普通名詞-一般
too , 名詞-普通名詞-一般
$ find glibc-install/lib
glibc-install/lib
glibc-install/lib/libmvec.a
glibc-install/lib/libpcprofile.so
glibc-install/lib/crt1.o
glibc-install/lib/libnss_db.so
glibc-install/lib/libm.so
glibc-install/lib/libnss_compat.so
glibc-install/lib/libm.a
glibc-install/lib/rcrt1.o
$ ./scripts/run_app_tests.sh
++ git rev-parse --show-toplevel
+ cd /home/akira/ghq/github.com/akawashiro/raijit
+ export PYTHONPATH=./build
+ PYTHONPATH=./build
+ python3 ./app_tests/nbody_test.py
5 0 LOAD_GLOBAL 0 (random)
2 LOAD_METHOD 1 (seed)
4 LOAD_CONST 1 (42)
6 CALL_METHOD 1