Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[libc] missing .note.GPU-stack section in fake_heap.s #122367

Open
nickdesaulniers opened this issue Jan 9, 2025 · 2 comments
Open

[libc] missing .note.GPU-stack section in fake_heap.s #122367

nickdesaulniers opened this issue Jan 9, 2025 · 2 comments
Assignees

Comments

@nickdesaulniers
Copy link
Member

Building llvm-libc unit tests with ld.bfd, I observe the warning:

/usr/bin/ld: warning: libc/test/src/__support/CMakeFiles/libc.test.src.__support.freelist_heap_test.__unit__.__build__.dir/fake_heap.s.o: missing .note.GNU-stack section implies executable stack

There's a command line flag for the compiler for this; but also I think you can use assembler directives in the assembler sources, too.

@llvmbot
Copy link
Member

llvmbot commented Jan 9, 2025

@llvm/issue-subscribers-libc

Author: Nick Desaulniers (nickdesaulniers)

Building llvm-libc unit tests with ld.bfd, I observe the warning:
/usr/bin/ld: warning: libc/test/src/__support/CMakeFiles/libc.test.src.__support.freelist_heap_test.__unit__.__build__.dir/fake_heap.s.o: missing .note.GNU-stack section implies executable stack

There's a command line flag for the compiler for this; but also I think you can use assembler directives in the assembler sources, too.

@nickdesaulniers
Copy link
Member Author

There's also:

[2787/6972] Building ASM object libc/test/src/__support/CM...rt.freelist_heap_test.__unit__.__build__.dir/fake_heap.s.o
clang: warning: argument unused during compilation: '-D LIBC_NAMESPACE=__llvm_libc_20_0_0_git' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-isystem /android0/llvm-project/build/libc/include' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-O3' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-D NDEBUG' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-D LIBC_FULL_BUILD' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-ffreestanding' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-fno-unwind-tables' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-fno-asynchronous-unwind-tables' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-ffixed-point' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-MD' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-MT libc/test/src/__support/CMakeFiles/libc.test.src.__support.freelist_heap_test.__unit__.__build__.dir/fake_heap.s.o' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-MF libc/test/src/__support/CMakeFiles/libc.test.src.__support.freelist_heap_test.__unit__.__build__.dir/fake_heap.s.o.d' [-Wunused-command-line-argument]

which is likely because we're using C flags for .s files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants