package
0.0.0-20190619201224-fc443047424c
Repository: https://github.com/notti/nocgo.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# README
ASM static binary -> dynamic loading without linking with ld
This directory contains the same 42.asm as 0_static, with an added call to __printf
and argument "hello world" that will be replaced by puts
from glibc.
rewrite.go
takes a.out
as input and outputs dyn
with changed elf headers so that:
interp
is added so we get loaded dynamicallylibc.so.6
is added as needed library- contents of
__printf
in.bss
get changed to point toputs
fromlibc.so.6
- profit:
./dyn
outputshello world
, is statically compiled (without libc!), but can call into the dynamic symbolputs