[libc-commits] [libc] [libc] Move from alias(X) to asm(X) for aliasing (PR #89333)

Nick Desaulniers via libc-commits libc-commits at lists.llvm.org
Thu Apr 18 16:45:57 PDT 2024


nickdesaulniers wrote:

Before:
```
$ llvm-readelf -sW projects/libc/src/stdlib/CMakeFiles/libc.src.stdlib.atexit.dir/atexit.cpp.o | llvm-cxxfilt | grep ::atexit
    16: 0000000000000000    38 FUNC    GLOBAL DEFAULT     9 __llvm_libc_19_0_0_git::atexit(void (*)())
```
After:
```
$ llvm-readelf -sW projects/libc/src/stdlib/CMakeFiles/libc.src.stdlib.atexit.dir/atexit.cpp.o | llvm-cxxfilt | grep ::atexit
$
```
huh, so the gnu alias attribute must mangle the identifier if the aliasee is within the same namespace.  I guess back to the drawing board for the GCC+overlay issue.

https://github.com/llvm/llvm-project/pull/89333


More information about the libc-commits mailing list