Simple binary output

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

I am after a simple bit of information, but I have searched the web to no avail…

I use i386-elf-gcc to generate a small elf files, using ‘-Ttext’ to specify the code location, then strip out the actual binary to create a raw executable. This works well ☺

However, I would like the BSS and DATA sections to be merged into the CODE section, such that the resultant binary covers all the memory used by the executable.

Is this at all possible, if so how?

Thanks in advance



--
Gary Partis
Partis Computing


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux