From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8939 invoked by alias); 10 Jun 2006 16:04:39 -0000 Received: (qmail 8924 invoked by uid 22791); 10 Jun 2006 16:04:37 -0000 X-Spam-Check-By: sourceware.org Received: from mail.s.netic.de (HELO mail.s.netic.de) (212.9.160.11) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 10 Jun 2006 16:04:35 +0000 Received: from host-213-178-187-22.dsl.netic.de ([213.178.187.22] helo=schleim.qwe.de) by mail.s.netic.de with esmtp (Exim 4.51) id 1Fp5wu-0004yZ-B0 for binutils@sourceware.org; Sat, 10 Jun 2006 18:04:32 +0200 Received: from localhost (localhost [IPv6:::1]) by schleim.qwe.de (Postfix) with ESMTP id 5F8DF3B596 for ; Sat, 10 Jun 2006 18:04:15 +0200 (CEST) From: Torsten Mohr To: binutils@sourceware.org Subject: objcopy, --change-section-lma ? Date: Sat, 10 Jun 2006 20:25:00 -0000 User-Agent: KMail/1.8 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200606101804.15002.tmohr@s.netic.de> X-IsSubscribed: yes Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org X-SW-Source: 2006-06/txt/msg00154.txt.bz2 Hi, to my understanding in a section header entry there are 10 values of 32 bit each. One reflects the VMA (SH_ADDR), but none reflects the LMA. I wondered how objcopy can change a sections LMA then and found out that it changes one of the program headers. I now wonder how it is ensured that this does not contradict to the LMA of other sections? Are other sections affected implicitly? Or does objcopy add another program header if necessary? If it does that, how is a section linked to a program header? It would be great if anybody could give me a hint on this. Best regards, Torsten.