From mboxrd@z Thu Jan 1 00:00:00 1970 From: Albert ARIBAUD Date: Tue, 28 Feb 2012 23:04:39 +0100 Subject: [U-Boot] [PATCH] ARM: Add .data/.rodata/.bss section starts to gd_t In-Reply-To: <1330380044-8305-1-git-send-email-peter.barada@logicpd.com> References: <1330380044-8305-1-git-send-email-peter.barada@logicpd.com> Message-ID: <4F4D4F77.4040609@aribaud.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Peter, Le 27/02/2012 23:00, Peter Barada a ?crit : > When debugging u-boot, after relocation its tedious to calculate positions > of the various sections (.data, .rodata, .bss). To make it easier, add > the structure "sections" to gd_t that contains the relocated start of > those sections. Then the gdb command "add-symbol-file" can by used with > "-s
" that corresponds to the values in gd_t->sections. NAK until I get an explanation and usage scenario for this, because I've never had to do calculations on sections so far, so I want to understand why it would be needed. Amicalement, -- Albert.