[libcxx-commits] [PATCH] D118503: [SystemZ][z/OS] Add ASCII and 32-bit variants for libc++.

Zibi Sarbino via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Fri Jan 28 11:43:53 PST 2022


zibi created this revision.
zibi added reviewers: muiez, SeanP, DanielMcIntosh-IBM, fanbo-meng, ldionne, libc++.
zibi added a project: libc++.
Herald added subscribers: arichardson, mgorny.
zibi requested review of this revision.
Herald added a subscriber: libcxx-commits.
Herald added 1 blocking reviewer(s): libc++.
Herald added a project: libc++abi.
Herald added a reviewer: libc++abi.

This patch enables libc++ build as shared library in all combinations of ASCII/EBCDIC and 32-bit/64-bit variants. In particular it introduces:

1. ASCII version of libc++ named as libc++_a.so
2. Script to rename DLL name inside the generated side deck
3. Various names for dataset members where DLL libraries and their side decks will reside

**Background and rational of this patch**

The linker on z/OS creates a list of exported symbols in a file called side deck. The list contains the symbol name as well as the name of the DLL which implements the symbol. The name of the DLL depends on what is specified in the -o command line option. If it points to a USS file, than the DLL name in the side deck will be the USS file name. If it points to a member of a dataset then the DLL name in the side deck is the member name.

If CMake could deal with z/OS datasets we could use -o that points to a dataset member name, but this does not seem to work so we have to produce a USS file as the DLL and then copy the content of the produced side deck to a dataset as well as rename the USS file name in the side deck to a dataset member name that corresponds to that DLL.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D118503

Files:
  libcxx/CMakeLists.txt
  libcxx/cmake/caches/zos.cmake
  libcxx/include/__config
  libcxx/src/CMakeLists.txt
  libcxx/utils/libcxx/test/config.py
  libcxx/utils/zos_rename_dll_side_deck.sh
  libcxxabi/CMakeLists.txt

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D118503.404103.patch
Type: text/x-patch
Size: 8271 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20220128/5a800ba8/attachment.bin>


More information about the libcxx-commits mailing list