In this section we will be writing a very simple Elf file, the minimal file size.
Currently we have this Elf file.
If I compare this one, I have this Elf file with almost 17 KB of size, but I have only one instruction
which is to print.
Hello.
And this is taking like 17 kb of size and we have the sections added.
This main sections added which is not needed for just printing.
You just want to print this many.
This.
Hello I do not need this many sections and it has so many segments as well.
And I know I need only one segment.
Uh, I mean I need only segments of type load.
I do not need all these new all those just to print this particular.
Hello.
So we'll be seeing this.
How can we write a very simple hello and how to write a simple hello elf file with a minimal size.
We will try to reduce this current size from 17 kb to a very minimal size, nearly in 100 bytes less
than 100 bytes range.
Okay.