From nobody@FreeBSD.org  Mon May  8 10:06:52 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id B7C8816A402
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  8 May 2006 10:06:52 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 8BC4A43D46
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  8 May 2006 10:06:52 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k48A6q0v014233
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 8 May 2006 10:06:52 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k48A6qkI014232;
	Mon, 8 May 2006 10:06:52 GMT
	(envelope-from nobody)
Message-Id: <200605081006.k48A6qkI014232@www.freebsd.org>
Date: Mon, 8 May 2006 10:06:52 GMT
From: Diego Petten <flameeyes@gentoo.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Patch to build FreeBSD kernel with binutils 2.16.92
X-Send-Pr-Version: www-2.3

>Number:         96974
>Category:       kern
>Synopsis:       [patch] to build FreeBSD kernel with binutils 2.16.92
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    obrien
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 08 10:10:15 GMT 2006
>Closed-Date:    Sat Jul 24 11:34:52 UTC 2010
>Last-Modified:  Sat Jul 24 11:34:52 UTC 2010
>Originator:     Diego Petten
>Release:        6.1_rc2
>Organization:
Gentoo
>Environment:
>Description:
Right now the code for FreeBSD kernel does not build with binutils 2.16.91.x
series, because it uses "movl" with segment registers.

With the simple patch I'm attaching, movl instructions are changed with
movw, that works for segment registers for both 2.15 and 2.16/2.17 binutils.

(Sorry for the duplicate, didn't though this is not bugzilla :/ The patch is at
http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-freebsd/freebsd-sources/files/freebsd-sources-6.0-asm.patch?rev=1.1&view=markup .
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->obrien 
Responsible-Changed-By: matteo 
Responsible-Changed-When: Mon May 15 17:53:11 UTC 2006 
Responsible-Changed-Why:  
Assign to binutils maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=96974 

From: Alexander Best <alexbestms@uni-muenster.de>
To: bug-followup@FreeBSD.org
Cc: =?ISO-8859-1?Q?Diego_Petten=F2?= <flameeyes@gentoo.org>
Subject: Re: kern/96974: [patch] to build FreeBSD kernel with binutils 2.16.92
Date: Sun, 27 Jun 2010 11:26:41 +0200

 fixed by r187948.
 
 since RELENG_6 and RELENG_7 will never get their GAS/binutils updated
 there's no need to MFC these changes. also building the freebsd source
 using anything other than base GAS/binutils is not being supported. so
 i guess it's best to close this pr instead of marking it patched.
 
 cheers.
 
 -- 
 Alexander Best
State-Changed-From-To: open->closed 
State-Changed-By: arundel 
State-Changed-When: Sat Jul 24 11:22:44 UTC 2010 
State-Changed-Why:  
Changes committed in r187948. 

Since RELENG_6 and RELENG_7 won't get their binutils updated, there's no need MFC'ing these changes. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=96974 
>Unformatted:
