NetBSD Problem Report #51066
From martin@duskware.de Thu Apr 14 11:48:47 2016
Return-Path: <martin@duskware.de>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
by mollari.NetBSD.org (Postfix) with ESMTPS id 5EA007A3DB
for <gnats-bugs@gnats.NetBSD.org>; Thu, 14 Apr 2016 11:48:47 +0000 (UTC)
From: martin@NetBSD.org
Reply-To: martin@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: C++ text relocations
X-Send-Pr-Version: 3.95
>Number: 51066
>Category: toolchain
>Synopsis: C++ text relocations
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: toolchain-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Apr 14 11:50:00 +0000 2016
>Closed-Date: Wed May 11 08:14:52 +0000 2016
>Last-Modified: Wed May 11 11:10:00 +0000 2016
>Originator: Martin Husemann
>Release: NetBSD 7.99.27
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD night-rest.duskware.de 7.99.27 NetBSD 7.99.27 (GENERIC) #0: Wed Apr 13 09:14:39 CEST 2016 martin@martins.aprisoft.de:/ssd/src/sys/arch/shark/compile/GENERIC shark
Architecture: earmv4
Machine: shark
>Description:
New warnings from ld.elf_so happen when running the atf tests:
/usr/lib/libstdc++.so.7: text relocations
/usr/lib/libatf-c++.so.1: text relocations
>How-To-Repeat:
Just run atf tests.
>Fix:
n/a
>Release-Note:
>Audit-Trail:
From: Nick Hudson <skrll@netbsd.org>
To: gnats-bugs@NetBSD.org, toolchain-manager@netbsd.org,
gnats-admin@netbsd.org, netbsd-bugs@netbsd.org
Cc:
Subject: Re: toolchain/51066: C++ text relocations
Date: Thu, 14 Apr 2016 12:55:02 +0100
Need to fix binutils... from src/libexec/ld.elf_so/rtld.c
342 #if !defined(__arm__) && !defined(__mips__) && !defined(__sh__)
343 /* ARM, MIPS and SH{3,5} have a bogus DT_TEXTREL. */
344 assert(!_rtld_objself.textrel);
345 #endif
Nick
From: Nick Hudson <skrll@netbsd.org>
To: gnats-bugs@NetBSD.org, toolchain-manager@netbsd.org,
gnats-admin@netbsd.org, netbsd-bugs@netbsd.org
Cc:
Subject: Re: toolchain/51066: C++ text relocations
Date: Tue, 19 Apr 2016 07:54:47 +0100
On 04/14/16 12:55, Nick Hudson wrote:
> Need to fix binutils... from src/libexec/ld.elf_so/rtld.c
>
> 342 #if !defined(__arm__) && !defined(__mips__) && !defined(__sh__)
> 343 /* ARM, MIPS and SH{3,5} have a bogus DT_TEXTREL. */
> 344 assert(!_rtld_objself.textrel);
> 345 #endif
Actually, this is a different (and fixed?) old bug.
There is an incorrect DT_TEXTREL in libstdc++
...bin/ld: warning: dynamic relocation to `__gxx_personality_v0' in
readonly section `.eh_frame'
which is coming from eh_personality.cc
I've tracked the problem down to config.gcc where arm/arm.h needs to be
last so that
the ARM_TARGET2_DWARF_FORMAT define in netbsd-eabi.h is seen
I'm testing a fix
Nick
From: "Nick Hudson" <skrll@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/51066 CVS commit: src/external/gpl3/gcc.old/dist/gcc
Date: Wed, 20 Apr 2016 06:51:03 +0000
Module Name: src
Committed By: skrll
Date: Wed Apr 20 06:51:03 UTC 2016
Modified Files:
src/external/gpl3/gcc.old/dist/gcc: config.gcc
Log Message:
Re-order includes so that ARM_TARGET2_DWARF_FORMAT takes effect
Fixes PR/51066: C++ text relocations
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/external/gpl3/gcc.old/dist/gcc/config.gcc
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: "Nick Hudson" <skrll@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/51066 CVS commit: src/external/gpl3/gcc/dist/gcc
Date: Thu, 21 Apr 2016 16:09:16 +0000
Module Name: src
Committed By: skrll
Date: Thu Apr 21 16:09:16 UTC 2016
Modified Files:
src/external/gpl3/gcc/dist/gcc: config.gcc
Log Message:
Re-order includes so that ARM_TARGET2_DWARF_FORMAT takes effect
Fixes PR/51066: C++ text relocations
To generate a diff of this commit:
cvs rdiff -u -r1.35 -r1.36 src/external/gpl3/gcc/dist/gcc/config.gcc
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->closed
State-Changed-By: martin@NetBSD.org
State-Changed-When: Wed, 11 May 2016 08:14:52 +0000
State-Changed-Why:
Nick fixed it.
From: "Martin Husemann" <martin@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/51066 CVS commit: [netbsd-7] src/external/gpl3/gcc/dist/gcc
Date: Wed, 11 May 2016 11:08:14 +0000
Module Name: src
Committed By: martin
Date: Wed May 11 11:08:14 UTC 2016
Modified Files:
src/external/gpl3/gcc/dist/gcc [netbsd-7]: config.gcc
Log Message:
Pull up following revision(s) (requested by skrll in ticket #1160):
external/gpl3/gcc.old/dist/gcc/config.gcc: revision 1.5
Re-order includes so that ARM_TARGET2_DWARF_FORMAT takes effect
Fixes PR/51066: C++ text relocations
To generate a diff of this commit:
cvs rdiff -u -r1.26.2.4 -r1.26.2.5 src/external/gpl3/gcc/dist/gcc/config.gcc
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.