From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12529 invoked by alias); 13 Aug 2007 07:45:47 -0000 Received: (qmail 11672 invoked by uid 22791); 13 Aug 2007 07:45:42 -0000 X-Spam-Check-By: sourceware.org Received: from www.iap-online.com (HELO www.iap-online.com) (69.20.70.12) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 13 Aug 2007 07:45:37 +0000 Received: from dk11 ([219.120.53.234]) (authenticated bits=0) by www.iap-online.com (8.12.11.20060308/8.12.11) with ESMTP id l7D7jP7N010491; Mon, 13 Aug 2007 03:45:29 -0400 From: "Bhushan Verma" To: "Nick Clifton" Cc: Subject: RE: Regarding linker code generation Date: Mon, 13 Aug 2007 07:45:00 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: <46B73E02.1030702@redhat.com> X-Synonym: Copied by Synonym (http://www.modulo.ro/synonym) to: mscopy X-IsSubscribed: yes 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: 2007-08/txt/msg00189.txt.bz2 Thanks Mr. Nick, I am using 2.17 linker version. I do know know how this is happening? There can be some environment problem. regards verma -----Original Message----- From: binutils-owner@sourceware.org [mailto:binutils-owner@sourceware.org]On Behalf Of Nick Clifton Sent: Tuesday, August 07, 2007 12:28 AM To: Bhushan Verma Cc: binutils@sourceware.org Subject: Re: Regarding linker code generation Hi Verma, > I am using gnu arm tool chain 4.1.1. Which version of the linker is used with this toolchain ? If it is a version earlier than 2.17 then it would be worth your while downloading the current binutils sources and building your own linker. > I mean that when I build any shared object this toolchain is building only > one segment as below > Program Header[0]: > p_vaddr: 0 p_flags: [ PF_X PF_W PF_R ] > p_paddr: 0 p_type: [ PT_LOAD ] > p_filesz: 0x2bc1f p_memsz: 0x2d6c8 > p_offset: 0 p_align: 0x8000 > > I know this header is needed ,but as per my knowledge this would make two > segment of p_type:PT_LOAD type. > mean two header values Program Header[0]: and Program Header[1]: of > p_type:PT_LOAD, one for data segment and one for text segment. > why this tool chain only generate one segment . is there any thing wrong in > tool chain. Two segments are not essential. One segment is sufficient, although possibly less efficient. ie it is not required that data sections are placed in a read-only segment. It is probably better to do so, but it is not required. Cheers Nick