This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Omit output section from executable
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