[PATCH] D80415: [AIX] Add '-bcdtors:all:0:s' to linker to gather static init functions

Hubert Tong via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri May 22 13:57:41 PDT 2020


hubert.reinterpretcast added inline comments.


================
Comment at: clang/test/Driver/aix-ld.cpp:2
+// Check powerpc-ibm-aix7.1.0.0, 32-bit. 'bcdtors' and argument order.
+// RUN: %clangxx -no-canonical-prefixes %s 2>&1 -### \
+// RUN:          -Wl,-bnocdtors \
----------------
I am wondering if it makes sense to put this into `aix-ld.c`. It helps to demonstrate that the link step behaviour is not determined by the source file name.

For example, in `hexagon-toolchain-elf.c`:
```
182 // RUN: %clangxx -### -target hexagon-unknown-elf \
183 // RUN:   -ccc-install-dir %S/Inputs/hexagon_tree/Tools/bin \
184 // RUN:   -mcpu=hexagonv60 \
185 // RUN:   %s 2>&1 \
186 // RUN:   | FileCheck -check-prefix=CHECK031 %s
```


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D80415/new/

https://reviews.llvm.org/D80415





More information about the cfe-commits mailing list