For BambooFox
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
0_compile fix clean, rm dump file Jul 1, 2015
1_link
2_section fix Makefile to make default for all build Jul 1, 2015
3_static fix clean, rm dump file Jul 1, 2015
4_custom_static add unreachable func to check lib Jul 4, 2015
5_dynamic Fix for gcc 5 Sep 25, 2016
6_custom_dynamic Fix for gcc 5 Sep 25, 2016
7_preload_dynamic fix Jul 1, 2015
.gitignore ignore VIM swp file Jul 1, 2015
LICENSE Initial commit Jun 29, 2015
README.md fix slides.pdf link Jul 4, 2015
TODO.md update Jul 4, 2015
slides.pdf update slides about relocation Jul 4, 2015

README.md

#Compile & Link Tutorial

##Slide

slides.pdf

##Refernece

How A Compiler Works: GNU Toolchain

The Internals of "Hello World" Program

Internal and External Linkage in C

##General Operation

Preprocess

make preprocess

Assembly Code Generation

make assembly

Compilation without linking

make object

Disassembly

make objdump

Build executable program

make build

Do all above

make all

Clean

make clean

##4_custom_static

Build additional library

make lib

##6_custom_dynamic

Build additional library

make lib

Execute with custom shared library

make run

##7_preload_dynamic

Build additional library

make lib

Execute with libc.so (normal)

make normal_run

Execute with preload shared library

make run