.text, .data and .bbs!!

Ian Lance Taylor iant@google.com
Mon Dec 6 23:19:00 GMT 2010


ali hagigat <hagigatali@gmail.com> writes:

> I want to write a C or Assembly program and compile it by GNU GCC. Is
> it possible to compile(or assemble) the code so that the final object
> code does not have any .text, .data and .bss sections?
> Generating these sections are compulsory by GCC?

It's not gcc, but the GNU assembler, which always creates those
sections.  And the GNU assembler does always create those sections;
I don't know of any way to disable that.

Ian



More information about the Binutils mailing list