[all-commits] [llvm/llvm-project] da92f2: [AIX][Driver] Implement -mxcoff-build-id option

Wael Yehia via All-commits all-commits at lists.llvm.org
Mon Mar 27 08:37:56 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: da92f2fb33c4e5fc570a51b0615e3d30a5b0bf8f
  Author: Wael Yehia <wyehia at ca.ibm.com>
  Date:   2023-03-27 (Mon, 27 Mar 2023)

  Changed paths:
    M clang/include/clang/Driver/Options.td
    M clang/lib/Driver/ToolChains/AIX.cpp
    A clang/test/Driver/xcoff-build-id.c

  Log Message:
  [AIX][Driver] Implement -mxcoff-build-id option

The -mxcoff-build-id=0xHEXSTRING option is an alternative to the
--build-id=0xHEXSTRING linker option that is not currently available in
the AIX linker.

If HEXSTRING is an odd number of hex digits then a '0' character is prepended.
The characters ':' and '-' are not allowed (unlike the GNU linker option).
The given build-id will be saved in the string table of the loader section.

A subsequent commit will teach the profile runtime to read and use the embedded id.

Reviewed By: daltenty, qiongsiwu1, stephenpeckham

Differential Revision: https://reviews.llvm.org/D146431

More information about the All-commits mailing list