[clang] [llvm] [PowerPC][AIX] Support #pragma comment copyright for AIX (PR #178184)
Hubert Tong via cfe-commits
cfe-commits at lists.llvm.org
Sat May 9 09:54:40 PDT 2026
================
@@ -6819,6 +6819,29 @@ The ``#pragma comment(lib, ...)`` directive is supported on all ELF targets.
The second parameter is the library name (without the traditional Unix prefix of
``lib``). This allows you to provide an implicit link of dependent libraries.
+Embedding Copyright Information on AIX
+======================================
+Clang supports the ``#pragma comment(copyright, "string")`` directive on AIX
+targets. This directive embeds a copyright or identifying string into the
+compiled object file. The string is included in the final executable or shared
+library and loaded into memory at program runtime. The directive is ignored on
+non-AIX targets.
+
+.. code-block:: c
+
+ #pragma comment(copyright, "string-literal")
+
+The second argument is an ordinary string literal. Concatenated ordinary string
----------------
hubert-reinterpretcast wrote:
Remove trailing whitespace.
```suggestion
The second argument is an ordinary string literal. Concatenated ordinary string
```
https://github.com/llvm/llvm-project/pull/178184
More information about the cfe-commits
mailing list