Skip to content

gbertao/ld-lab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My ld-script lab

Some code to learn ld-script language.

exp 1: Write a binary that returns 10 as a status code using only the ld script.

exp 2: Allocate a memory block to store the binary.

exp 3: Allocate .data block.

exp 4: Write to read-only memory. (Nothing happened, the read-only attribute was ignored).

exp 5: Multi-part assembly combined at the link phase.

exp 6: Add bytes to print buffer.

exp 7: Re-write function's .text.

exp 8: Jump to external assembly.

exp 9: Compare binary and elf64-x86-64 output.