From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21472 invoked by alias); 24 May 2011 00:07:23 -0000 Received: (qmail 21452 invoked by uid 22791); 24 May 2011 00:07:22 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from ra.se.axis.com (HELO ra.se.axis.com) (195.60.68.13) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 24 May 2011 00:07:04 +0000 Received: from localhost (localhost [127.0.0.1]) by ra.se.axis.com (Postfix) with ESMTP id C7A0511E8F; Tue, 24 May 2011 02:07:00 +0200 (CEST) Received: from ra.se.axis.com ([127.0.0.1]) by localhost (ra.se.axis.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id JVgMUMTc3v95; Tue, 24 May 2011 02:07:00 +0200 (CEST) Received: from thoth.se.axis.com (thoth.se.axis.com [10.0.2.173]) by ra.se.axis.com (Postfix) with ESMTP id 0343511E8E; Tue, 24 May 2011 02:06:59 +0200 (CEST) Received: from ignucius.se.axis.com (ignucius.se.axis.com [10.88.21.50]) by thoth.se.axis.com (Postfix) with ESMTP id EA37D34080; Tue, 24 May 2011 02:06:59 +0200 (CEST) Received: from ignucius.se.axis.com (localhost [127.0.0.1]) by ignucius.se.axis.com (8.12.8p1/8.12.8/Debian-2woody1) with ESMTP id p4O06xF6027785; Tue, 24 May 2011 02:06:59 +0200 Received: (from hp@localhost) by ignucius.se.axis.com (8.12.8p1/8.12.8/Debian-2woody1) id p4O06x5a027781; Tue, 24 May 2011 02:06:59 +0200 Date: Tue, 24 May 2011 00:07:00 -0000 Message-Id: <201105240006.p4O06x5a027781@ignucius.se.axis.com> From: Hans-Peter Nilsson To: amodra@gmail.com CC: binutils@sourceware.org In-reply-to: <20110523054125.GX20800@bubble.grove.modra.org> (message from Alan Modra on Mon, 23 May 2011 15:11:25 +0930) Subject: Fix cris-* fallout from Re: Fix PR12763, .tbss mishandling MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=iso-8859-1 Content-Transfer-Encoding: 8BIT Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org X-SW-Source: 2011-05/txt/msg00313.txt.bz2 > Date: Mon, 23 May 2011 15:11:25 +0930 > From: Alan Modra > bfd/ > PR 12763 > * elf.c (assign_file_positions_for_load_sections): Set sh_offset for > .tbss, and page align same for all SHT_NOBITS sections. > ld/ > PR 12763 > * ldlang.c (lang_output_section_find_by_flags): Match orphan .sdata2 > like sections to existing .sdata2, and similarly for orphan TLS > sections. > * emultempl/elf32.em (place_orphan): Exclude .tbss from orphan_bss. And here I am, playing catch-up again. Should we change the rule regarding who is to update the test-suite? Committed. ld/testsuite: * ld-cris/tls-e-tpoffcomm1.d: Adjust for second PR12763 change, setting TLS file offset. Index: ld-cris/tls-e-tpoffcomm1.d =================================================================== RCS file: /cvs/src/src/ld/testsuite/ld-cris/tls-e-tpoffcomm1.d,v retrieving revision 1.2 diff -p -u -r1.2 tls-e-tpoffcomm1.d --- ld-cris/tls-e-tpoffcomm1.d 21 May 2011 01:47:24 -0000 1.2 +++ ld-cris/tls-e-tpoffcomm1.d 24 May 2011 00:02:11 -0000 @@ -12,7 +12,7 @@ Program Header: LOAD off 0x0+ vaddr 0x0+80000 paddr 0x0+80000 align 2\*\*13 filesz 0x0+84 memsz 0x0+84 flags r-x - TLS off 0x0+ vaddr 0x0+82084 paddr 0x0+82084 align 2\*\*2 + TLS off 0x0+84 vaddr 0x0+82084 paddr 0x0+82084 align 2\*\*2 filesz 0x0+ memsz 0x0+8 flags r-- private flags = 0: @@ -20,7 +20,7 @@ Sections: Idx Name Size VMA LMA File off Algn 0 .text 0+10 0+80074 0+80074 0+74 2\*\*1 CONTENTS, ALLOC, LOAD, READONLY, CODE - 1 .tbss 0+8 0+82084 0+82084 0+ 2\*\*2 + 1 .tbss 0+8 0+82084 0+82084 0+84 2\*\*2 ALLOC, THREAD_LOCAL SYMBOL TABLE: 0+80074 l d .text 0+ .text brgds, H-P