Re: [PATCH] selftests/exec: build with -fPIE instead of -pie, to make clang happy

2024-05-06 Thread John Hubbard
On 5/6/24 10:09 AM, Kees Cook wrote: On Fri, May 03, 2024 at 07:23:01PM -0700, John Hubbard wrote: clang doesn't deal well with "-pie -static": it warns that -pie is an unused option here. Changing to "-fPIE -static" solves this problem for clang, while keeping the gcc results identical. The

Re: [PATCH] selftests/exec: build with -fPIE instead of -pie, to make clang happy

2024-05-06 Thread Kees Cook
On Fri, May 03, 2024 at 07:23:01PM -0700, John Hubbard wrote: > clang doesn't deal well with "-pie -static": it warns that -pie is an > unused option here. Changing to "-fPIE -static" solves this problem for > clang, while keeping the gcc results identical. > > The problem is visible when

[PATCH] selftests/exec: build with -fPIE instead of -pie, to make clang happy

2024-05-03 Thread John Hubbard
clang doesn't deal well with "-pie -static": it warns that -pie is an unused option here. Changing to "-fPIE -static" solves this problem for clang, while keeping the gcc results identical. The problem is visible when building via: make LLVM=1 -C tools/testing/selftests Again: gcc 13