From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5089 invoked by alias); 30 Jul 2007 03:29:33 -0000 Received: (qmail 5080 invoked by uid 22791); 30 Jul 2007 03:29:33 -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, 30 Jul 2007 03:29:30 +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 l6U3TNVo018963 for ; Sun, 29 Jul 2007 23:29:26 -0400 From: "Bhushan Verma" To: Subject: Regarding linker code generation Date: Mon, 30 Jul 2007 14:24:00 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: <1185763943.19324.ezmlm@sourceware.org> 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-07/txt/msg00527.txt.bz2 Dear ALL, Could you please help me to sort out my problem. Actually whenever I run my run time linker on unix like OS (arm) with following Program header This run well. 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 Why linker is generating this type of header? But whenwver I separate code and data segment this gives segmentation fault inside self relocation of run time linker. after separation of code and data segment of run timer linker: Program Header[0]: p_vaddr: 0 p_flags: [ PF_X PF_R ] p_paddr: 0 p_type: [ PT_LOAD ] p_filesz: 0x2b094 p_memsz: 0x2b094 p_offset: 0 p_align: 0x8000 Program Header[1]: p_vaddr: 0x330a4 p_flags: [ PF_W PF_R ] p_paddr: 0x330a4 p_type: [ PT_LOAD ] p_filesz: 0xa2b p_memsz: 0x24d4 p_offset: 0x2b0a4 p_align: 0x8000 I am using gnu arm toolchain Could you please help me is this due to permiison of data segment or I have some other problem as in creating wrong data segment etc. could you please explian me p_vaddr Vs p_paddr. Regards Verma