![]() System : Linux absol.cf 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, Directory : /usr/share/cmake-3.16/Modules/Platform/AIX/ |
Upload File : |
#!/bin/sh # Distributed under the OSI-approved BSD 3-Clause License. See accompanying # file Copyright.txt or https://cmake.org/licensing for details. # This script is internal to CMake and meant only to be # invoked by CMake-generated build systems on AIX. usage='usage: ExportImportList -o <out-file> [-l <lib>] [--] <objects>...' die() { echo "$@" 1>&2; exit 1 } # Process command-line arguments. out='' lib='' while test "$#" != 0; do case "$1" in -l) shift; lib="$1" ;; -o) shift; out="$1" ;; --) shift; break ;; -*) die "$usage" ;; *) break ;; esac shift done test -n "$out" || die "$usage" # Collect symbols exported from all object files. out_tmp="$out.tmp$$" trap 'rm -f "$out_tmp"' EXIT INT TERM for f in "$@"; do dump -tov -X 32_64 "$f" | awk ' BEGIN { V["EXPORTED"]=" export" V["PROTECTED"]=" protected" } /^\[[0-9]+\]\tm +[^ ]+ +\.(text|data|bss) +[^ ]+ +(extern|weak) +(EXPORTED|PROTECTED| ) / { if (!match($NF,/^(\.|__sinit|__sterm|__[0-9]+__)/)) { print $NF V[$(NF-1)] } } ' done > "$out_tmp" # Generate the export/import file. { if test -n "$lib"; then echo "#! $lib" fi sort -u "$out_tmp" } > "$out"