* [kvm-unit-tests PULL 2/4] s390x: Remove .note.gnu.build-id section from the ELF files
@ 2018-06-26 10:01 Thomas Huth
0 siblings, 0 replies; only message in thread
From: Thomas Huth @ 2018-06-26 10:01 UTC (permalink / raw)
To: kvm-ppc
While debugging another problem, we noticed that the low memory contains
some bytes which should not be there. Looks like the linker puts the
".note.gnu.build-id" section to address 0 if it has not explicitly
specified in the linker script. ARM and powerpc unit tests are apparently
already using --build-id=none to avoid this problem, so let's simply use
this linker flag in the s390x builds, too.
Reviewed-by: Janosch Frank <frankja@linux.ibm.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
---
s390x/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/s390x/Makefile b/s390x/Makefile
index d4275a1..6546a02 100644
--- a/s390x/Makefile
+++ b/s390x/Makefile
@@ -21,7 +21,7 @@ CFLAGS += -I $(SRCDIR)/lib -I $(SRCDIR)/lib/s390x -I lib
CFLAGS += -O2
CFLAGS += -march=z900
CFLAGS += -fno-delete-null-pointer-checks
-LDFLAGS += -nostdlib
+LDFLAGS += -nostdlib -Wl,--build-id=none
# We want to keep intermediate files
.PRECIOUS: %.o
--
1.8.3.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2018-06-26 10:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-26 10:01 [kvm-unit-tests PULL 2/4] s390x: Remove .note.gnu.build-id section from the ELF files Thomas Huth
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.