Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Jan 2017 02:21:35 +0000 (UTC)
From:      Justin Hibbits <jhibbits@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r311912 - head/sys/powerpc/include
Message-ID:  <201701110221.v0B2LZCV010286@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhibbits
Date: Wed Jan 11 02:21:34 2017
New Revision: 311912
URL: https://svnweb.freebsd.org/changeset/base/311912

Log:
  Force all TOC references in asm to include '@toc'
  
  This reportedly fixes one problem with booting a clang kernel.
  
  PR:		kern/215819
  Submitted by:	Mark Millard <markmi AT dsl-only.net>
  MFC after:	2 weeks

Modified:
  head/sys/powerpc/include/asm.h

Modified: head/sys/powerpc/include/asm.h
==============================================================================
--- head/sys/powerpc/include/asm.h	Wed Jan 11 01:53:54 2017	(r311911)
+++ head/sys/powerpc/include/asm.h	Wed Jan 11 02:21:34 2017	(r311912)
@@ -89,10 +89,11 @@
 	name:
 
 #ifdef __powerpc64__
-#define TOC_REF(name)	__CONCAT(.L,name)
+#define TOC_NAME_FOR_REF(name)	__CONCAT(.L,name)
+#define	TOC_REF(name)	TOC_NAME_FOR_REF(name)@toc
 #define TOC_ENTRY(name) \
 	.section ".toc","aw"; \
-	TOC_REF(name): \
+	TOC_NAME_FOR_REF(name): \
         .tc name[TC],name
 #endif
 



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