Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Jun 2018 13:32:42 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r334998 - head/sys/modules/linux64
Message-ID:  <201806121332.w5CDWgo9000298@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: emaste
Date: Tue Jun 12 13:32:42 2018
New Revision: 334998
URL: https://svnweb.freebsd.org/changeset/base/334998

Log:
  linux64: use linux output target for linux_vdso.so
  
  linux_vdso.so provides the vdso for the linuxulator's amd64 target and
  is mapped into a Linux binary's address space.  Thus it should be a
  Linux-style .so, which has the ELF OS/ABI unset.
  
  It turns out that ELF Tool Chain elfcopy/objcopy also has a bug where
  the OS/ABI field is unset, regardless of the specified --output-target,
  so this change is a no-op with the default in-tree toolchain.  This is a
  real fix when using external binutils, and the ELF Tool Chain bug will
  be fixed in the future.
  
  PR:		228934
  Sponsored by:	Turing Robotic Industries

Modified:
  head/sys/modules/linux64/Makefile

Modified: head/sys/modules/linux64/Makefile
==============================================================================
--- head/sys/modules/linux64/Makefile	Tue Jun 12 13:26:31 2018	(r334997)
+++ head/sys/modules/linux64/Makefile	Tue Jun 12 13:32:42 2018	(r334998)
@@ -36,7 +36,7 @@ linux_locore.o: linux_locore.s linux_assym.h
 	    ${.IMPSRC} -o ${.TARGET}
 
 ${VDSO}.so: linux_locore.o
-	${OBJCOPY} --input-target binary --output-target elf64-x86-64-freebsd		\
+	${OBJCOPY} --input-target binary --output-target elf64-x86-64 \
 	    -S -g --binary-architecture i386:x86-64 linux_locore.o ${.TARGET}
 	strip -N _binary_linux_locore_o_size ${.TARGET}
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201806121332.w5CDWgo9000298>