Movatterモバイル変換
[0]ホーム
This is the mail archive of thebinutils@sources.redhat.commailing list for thebinutils project.
Re: Does a zero-sized object in BSS go away?
Hi Thiemo,> > > 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?Oops, I just realized "struct s { char a[0] } s0;" is a GCC extension.Kazu Hirata
[8]ページ先頭