From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5623 invoked by alias); 31 Aug 2011 15:01:05 -0000 Received: (qmail 5605 invoked by uid 22791); 31 Aug 2011 15:01:04 -0000 X-SWARE-Spam-Status: No, hits=-1.2 required=5.0 tests=AWL,BAYES_20,RCVD_IN_DNSWL_LOW,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.windriver.com (HELO mail.windriver.com) (147.11.1.11) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 31 Aug 2011 15:00:51 +0000 Received: from ALA-HCA.corp.ad.wrs.com (ala-hca [147.11.189.40]) by mail.windriver.com (8.14.3/8.14.3) with ESMTP id p7VF0o3V021003 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL) for ; Wed, 31 Aug 2011 08:00:50 -0700 (PDT) Received: from Macintosh-5.local (172.25.36.227) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server id 14.1.255.0; Wed, 31 Aug 2011 08:00:50 -0700 Message-ID: <4E5E4CA1.2000207@windriver.com> Date: Wed, 31 Aug 2011 15:01:00 -0000 From: Mark Hatle User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:6.0) Gecko/20110812 Thunderbird/6.0 MIME-Version: 1.0 To: Subject: MIPS prelinking issue Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact prelink-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: prelink-owner@sourceware.org X-SW-Source: 2011-q3/txt/msg00000.txt.bz2 When using the prelinker on a mips target using the latest compiler/linker from OpenEmbedded-Core, gcc-4.6.1 and binutils-2.21.1a, I get the following message: prelink: [binary]: NOBITS section followed by non-NOBITS section in the same segment Most, if not all of the executables, on the system return that message. Using READELF: Section Headers: [Nr] Name Type Addr Off Size ES Flg Lk Inf Al [ 0] NULL 00000000 000000 000000 00 0 0 0 [ 1] .interp PROGBITS 00400134 000134 00000d 00 A 0 0 1 [ 2] .note.ABI-tag NOTE 00400144 000144 000020 00 A 0 0 4 [ 3] .dynamic DYNAMIC 00400164 000164 0000d8 08 A 6 0 4 [ 4] .hash HASH 0040023c 00023c 000f94 04 A 5 0 4 [ 5] .dynsym DYNSYM 004011d0 0011d0 001540 10 A 6 1 4 [ 6] .dynstr STRTAB 00402710 002710 000b75 00 A 0 0 1 [ 7] .gnu.version VERSYM 00403286 003286 0002a8 02 A 5 0 2 [ 8] .gnu.version_r VERNEED 00403530 003530 000080 00 A 6 1 4 [ 9] .init PROGBITS 004035b0 0035b0 000078 00 AX 0 0 4 [10] .text PROGBITS 00403630 003630 090450 00 AX 0 0 16 [11] .MIPS.stubs PROGBITS 00493a80 093a80 001280 00 AX 0 0 4 [12] .fini PROGBITS 00494d00 094d00 000044 00 AX 0 0 4 [13] .rodata PROGBITS 00494d50 094d50 010631 00 A 0 0 16 [14] .eh_frame_hdr PROGBITS 004a5384 0a5384 00002c 00 A 0 0 4 [15] .eh_frame PROGBITS 004a53b0 0a53b0 000068 00 A 0 0 4 [16] .ctors PROGBITS 004b5418 0a5418 000008 00 WA 0 0 4 [17] .dtors PROGBITS 004b5420 0a5420 000008 00 WA 0 0 4 [18] .jcr PROGBITS 004b5428 0a5428 000004 00 WA 0 0 4 [19] .data.rel.ro PROGBITS 004b542c 0a542c 000c48 00 WA 0 0 4 [20] .data PROGBITS 004b6074 0a6074 00013a 00 WA 0 0 4 [21] .rld_map PROGBITS 004b61b0 0a61b0 000004 00 WA 0 0 4 [22] .got PROGBITS 004b61c0 0a61c0 000568 04 WAp 0 0 16 [23] .sdata PROGBITS 004b6728 0a6728 000004 00 WAp 0 0 4 [24] .sbss NOBITS 004b672c 0a672c 00003d 00 WAp 0 0 4 [25] .bss NOBITS 004b6770 0a672c 0021cc 00 WA 0 0 16 [26] .gnu.attributes LOOS+ffffff5 00000000 0a672c 000010 00 0 0 1 [27] .mdebug.abi32 PROGBITS 004b893c 0a673c 000000 00 0 0 1 [28] .gnu_debuglink PROGBITS 00000000 0a673c 00000c 00 0 0 1 [29] .shstrtab STRTAB 00000000 0a6748 00010d 00 0 0 1 So it's correct that there are two NOBITS before the next PROGBITS. .sbss and .bss, however I thought that the prelinker would ignore the bss sections and/or change them into PROGBITS. Any suggestions on how to resolve this issue? Is this a toolchain issue, prelinker bug or? Thanks, Mark