https://sourceware.org/bugzilla/show_bug.cgi?id=33577
--- Comment #6 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Ali Bahrami from comment #5)
> I believe that these details are the same on Solaris as on GNU. I also
> don't think it's causing any known problems today, as the example is
> artificial, and the approach using a weak symbol is poor. It's just
> something that was noticed while testing.
As I said in comment #4, BASE is unrelated to weak symbol:
[hjl@gnu-tgl-3 tmp]$ cat x.c
void
foo (void)
{
}
[hjl@gnu-tgl-3 tmp]$ cat x.map
VERS_1 {
global:
foo;
local:
*;
};
[hjl@gnu-tgl-3 tmp]$ gcc -c -fPIC x.c
[hjl@gnu-tgl-3 tmp]$ ld -o libx.so -shared x.o --version-script=x.map
[hjl@gnu-tgl-3 tmp]$ readelf -V libx.so
Version symbols section '.gnu.version' contains 3 entries:
Addr: 0x0000000000001084 Offset: 0x00001084 Link: 3 (.dynsym)
000: 0 (*local*) 2 (VERS_1) 2 (VERS_1)
Version definition section '.gnu.version_d' contains 2 entries:
Addr: 0x0000000000001090 Offset: 0x00001090 Link: 4 (.dynstr)
000000: Rev: 1 Flags: BASE Index: 1 Cnt: 1 Name: libx.so
0x001c: Rev: 1 Flags: none Index: 2 Cnt: 1 Name: VERS_1
[hjl@gnu-tgl-3 tmp]$
--
You are receiving this mail because:
You are on the CC list for the bug.