bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/28814] Support creating empty ELF symbol versions without VER_FL


From: fweimer at redhat dot com
Subject: [Bug ld/28814] Support creating empty ELF symbol versions without VER_FLG_WEAK
Date: Mon, 31 Jan 2022 16:32:46 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=28814

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fweimer at redhat dot com

--- Comment #2 from Florian Weimer <fweimer at redhat dot com> ---
Version definition section '.gnu.version_d' contains 4 entries:
 Addr: 0x00000000000004a8  Offset: 0x0004a8  Link: 5 (.dynstr)
  000000: Rev: 1  Flags: BASE  Index: 1  Cnt: 1  Name: a.out
  0x001c: Rev: 1  Flags: none  Index: 2  Cnt: 1  Name: VER_1
  0x0038: Rev: 1  Flags: WEAK  Index: 3  Cnt: 2  Name: VER_2
  0x0054: Parent 1: VER_1
  0x005c: Rev: 1  Flags: none  Index: 4  Cnt: 2  Name: VER_3
  0x0078: Parent 1: VER_2

a.out built from:

$ head -v ex.c ex.lds 
==> ex.c <==
void f1(void) {}
void f3(void) {}

==> ex.lds <==
VER_1 {
  global: f1;
  local: *;
};
VER_2 {
} VER_1;
VER_3 {
  global: f2;
} VER_2;

using:

gcc -shared ex.c -Wl,--version-script=ex.lds

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]