------- Comment #32 from geoffk at geoffk dot org 2007-11-05 00:14 ------- Subject: Re: [4.3 Regression] typeinfo name referenced in ... defined in discarded section
On 04/11/2007, at 6:40 AM, hjl at lucon dot org wrote: > ------- Comment #31 from hjl at lucon dot org 2007-11-04 14:40 > ------- > (In reply to comment #30) >> Subject: Re: [4.3 Regression] typeinfo name referenced in ... >> defined in >> discarded section >> >> On 03/11/2007, at 7:21 AM, hjl at lucon dot org wrote: >> >>> Local symbols should only be referenced within the same comdat group >>> or the linkonce section. Otherwise, it is a compiler bug. >> >> How do you represent, in ELF, a string which should be present in the >> executable only once, but which need not have a globally visible >> name? >> > > You can put it in a comdat group. But you should only reference it > from the > same comdat group. A comdat group is a set of sections which have the > same signature. What if you want to reference this string from somewhere that should never be discarded, like a global variable? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33871