linux-sgx.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH for_v29] selftests/sgx: Fix a benign linker warning
@ 2020-03-30 17:31 Sean Christopherson
  2020-03-30 20:35 ` Jarkko Sakkinen
  0 siblings, 1 reply; 2+ messages in thread
From: Sean Christopherson @ 2020-03-30 17:31 UTC (permalink / raw)
  To: Jarkko Sakkinen; +Cc: linux-sgx

Pass a build id of "none" to the linker to suppress a warning about the
build id being ignored:

  /usr/bin/ld: warning: .note.gnu.build-id section discarded, --build-id
  ignored.

Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
---
 tools/testing/selftests/sgx/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/testing/selftests/sgx/Makefile b/tools/testing/selftests/sgx/Makefile
index 95e5c4df8014..b0a47c695c19 100644
--- a/tools/testing/selftests/sgx/Makefile
+++ b/tools/testing/selftests/sgx/Makefile
@@ -41,7 +41,7 @@ $(OUTPUT)/call.o: call.S
 	$(CC) $(HOST_CFLAGS) -c $< -o $@
 
 $(OUTPUT)/test_encl.elf: test_encl.lds test_encl.c test_encl_bootstrap.S
-	$(CC) $(ENCL_CFLAGS) -T $^ -o $@
+	$(CC) $(ENCL_CFLAGS) -T $^ -o $@ -Wl,--build-id=none
 
 EXTRA_CLEAN := \
 	$(OUTPUT)/test_encl.elf \
-- 
2.24.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH for_v29] selftests/sgx: Fix a benign linker warning
  2020-03-30 17:31 [PATCH for_v29] selftests/sgx: Fix a benign linker warning Sean Christopherson
@ 2020-03-30 20:35 ` Jarkko Sakkinen
  0 siblings, 0 replies; 2+ messages in thread
From: Jarkko Sakkinen @ 2020-03-30 20:35 UTC (permalink / raw)
  To: Sean Christopherson; +Cc: linux-sgx

On Mon, Mar 30, 2020 at 10:31:20AM -0700, Sean Christopherson wrote:
> Pass a build id of "none" to the linker to suppress a warning about the
> build id being ignored:
> 
>   /usr/bin/ld: warning: .note.gnu.build-id section discarded, --build-id
>   ignored.
> 
> Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>

Thanks. Got idea from this that the ELF format used in the test could
be further refined with something like ".note.x86.tcs", which would
contain the start offset and size of the TCS list.

/Jarkko

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-03-30 20:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-30 17:31 [PATCH for_v29] selftests/sgx: Fix a benign linker warning Sean Christopherson
2020-03-30 20:35 ` Jarkko Sakkinen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).