Movatterモバイル変換


[0]ホーム

URL:


This is the mail archive of thebinutils@sources.redhat.commailing list for thebinutils 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?


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

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

[8]ページ先頭

©2009-2025 Movatter.jp