[all-commits] [llvm/llvm-project] 020566: [LTO] Add function alias as function instead of da...

Shimin Cui via All-commits all-commits at lists.llvm.org
Thu Oct 17 09:10:27 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 020566701030425f44eb80387d0ae76c5a867aa9
      https://github.com/llvm/llvm-project/commit/020566701030425f44eb80387d0ae76c5a867aa9
  Author: Shimin Cui <scui at ca.ibm.com>
  Date:   2024-10-17 (Thu, 17 Oct 2024)

  Changed paths:
    M llvm/include/llvm/LTO/legacy/LTOModule.h
    M llvm/lib/LTO/LTOModule.cpp
    A llvm/test/LTO/PowerPC/list-symbol.ll
    M llvm/tools/llvm-lto/llvm-lto.cpp

  Log Message:
  -----------
  [LTO] Add function alias as function instead of data (#112599)

On AIX, for undefined functions, only the dotnamed symbols (the address
of the function) are generated after linking (i.e., no named function
symbol is generated).
 
Currently, all alias symbols are added as defined data symbols when
parsing symbols in LTOModule (the Link Time Optimization library used by
linker to optimization code at link time). On AIX, if the function alias
is used in the native object, and only its dotnamed symbol is generated,
the linker will have problem to match the dotnamed symbol from the
native object and the defined symbol marked as data from the bitcode at
LTO linktime.
 
This patch is to add function alias as function instead of data.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list