This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc 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] | |
On Mon, Dec 30, 2002 at 01:39:30PM -0800, Roland McGrath wrote:
>
> > Please try
> >
> > extern int x;
> > int _x __attribute__((section (".bss")));
> > asm(".symver _x,x@VERS_1");
> > int foo() { return x; }
>
> That produces an undefined reference to unversioned `x'.
>
If _x is undefined, as will generate a versioned reference to x.
H.J.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |