Omit output section from executable
Udo A. Steinberg
us15@os.inf.tu-dresden.de
Wed Aug 2 21:20:00 GMT 2006
On Wed, 2 Aug 2006 16:50:19 -0400 Daniel Jacobowitz (DJ) wrote:
DJ> I'm not sure exactly what you want, but if the data is useless, try
DJ> making the .cpulocal section "nobits".
Nobits is what I want indeed. In assembler sources I can do:
.section .cpulocal, "aw", @nobits
foo: .long
and I get
.cpulocal 00000004 00000000 00000000 000000ba 2**0
ALLOC
But how can I achieve the same for C sources? When I write:
unsigned foo __attribute__((section (".cpulocal")));
I get
.cpulocal 00000004 00000000 00000000 00000034 2**2
CONTENTS, ALLOC, LOAD, DATA
Thanks,
- Udo
More information about the Binutils
mailing list