[0/3] Fix ld.lld-17 libctf version script symbol not defined errors

Message ID cover.1709355051.git.nvinson234@gmail.com
Headers
Series Fix ld.lld-17 libctf version script symbol not defined errors |

Message

Nicholas Vinson March 2, 2024, 4:59 a.m. UTC
  Starting with ld.lld-17, ld.lld is invoked with the option
--no-undefined-version enabled by default. This causes ld.lld to error whenever
a versioned symbol map contains undefined symbols. As a result, ld.lld emits
errors when building libctf.

Together these patches fix the undefined symbol errors that occur when building
libctf.

Special thanks to Sam Jones and Nick Alcock for their assitance in creating this
patch set.

Fixes Gentoo bug 914640 (https://bugs.gentoo.org/914640)

Signed-off-by: Nicholas Vinson <nvinson234@gmail.com>

Nicholas Vinson (3):
  libctf: Remove undefined functions from ver. map
  libctf: Add comment for conditionally def'd sym
  libctf: Regnerate configure

 libctf/configure    | 3 ++-
 libctf/configure.ac | 3 ++-
 libctf/libctf.ver   | 5 +----
 3 files changed, 5 insertions(+), 6 deletions(-)