Skip to content

Genghius/core-asmr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

#About

A GNU inspired set of coreutils written in x86_64 assembly.

I started this to teach myself assembly, it isnt meant to be actually useful.

#Assemble

This will tell NASM to create the object file ready to be linked.

nasm -f elf64 file.asm -o file.o

This will link the file.

ld file.o -o file

And voila! you now have an executable.

#Reducing binary size

The binaries will contain a considerable amount of data that is not needed.

Most of this can be "stripped" like this.

strip -R .note -R .comment -R .eh_frame -R .eh_frame_hdr file