From owner-freebsd-bugs@FreeBSD.ORG Tue Nov 3 09:50:01 2009 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A379A1065693 for ; Tue, 3 Nov 2009 09:50:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 6776F8FC16 for ; Tue, 3 Nov 2009 09:50:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id nA39o1g0051210 for ; Tue, 3 Nov 2009 09:50:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id nA39o1to051209; Tue, 3 Nov 2009 09:50:01 GMT (envelope-from gnats) Resent-Date: Tue, 3 Nov 2009 09:50:01 GMT Resent-Message-Id: <200911030950.nA39o1to051209@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Sebastian Huber Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9D829106568D for ; Tue, 3 Nov 2009 09:43:11 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 8CC5A8FC1A for ; Tue, 3 Nov 2009 09:43:11 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id nA39hADH081076 for ; Tue, 3 Nov 2009 09:43:10 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id nA39hA9D081075; Tue, 3 Nov 2009 09:43:10 GMT (envelope-from nobody) Message-Id: <200911030943.nA39hA9D081075@www.freebsd.org> Date: Tue, 3 Nov 2009 09:43:10 GMT From: Sebastian Huber To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: kern/140241: Linker set problems on PowerPC EABI X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Nov 2009 09:50:01 -0000 >Number: 140241 >Category: kern >Synopsis: Linker set problems on PowerPC EABI >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Nov 03 09:50:01 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Sebastian Huber >Release: 9-current >Organization: embedded brains GmbH >Environment: >Description: On PowerPC with EABI and the usage of the small data area we have a problem with the linker set start and stop declaration (sys/linker_set.h). Currently GCC assumes that these objects reside in the small data area, which actually is not the case. You can avoid this if you change the declaration to an array type. >How-To-Repeat: >Fix: Index: sys/linker_set.h =================================================================== --- sys/linker_set.h (revision 198848) +++ sys/linker_set.h (working copy) @@ -67,8 +67,8 @@ * Initialize before referring to a given linker set. */ #define SET_DECLARE(set, ptype) \ - extern ptype *__CONCAT(__start_set_,set); \ - extern ptype *__CONCAT(__stop_set_,set) + extern ptype __CONCAT(__start_set_,set) []; \ + extern ptype __CONCAT(__stop_set_,set) [] #define SET_BEGIN(set) \ (&__CONCAT(__start_set_,set)) >Release-Note: >Audit-Trail: >Unformatted: