This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Does a zero-sized object in BSS go away?


Kazu Hirata wrote:
> Hi Geoff,
> 
> > The linker should assign an address to it.  However, some object file
> > formats can't represent zero-sized common objects, in which case the
> > assembler should probably report an error if someone tries to create one.
> 
> Thanks.  That means some valid C using a zerosized object program
> may not be represented in those formats.  Sigh...

How do you construct a zero sized object in valid C?


Thiemo


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]