From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jerry Van Baren Date: Thu, 07 May 2009 08:13:31 -0400 Subject: [U-Boot] QUESTION: How do I generate an assembly listing? In-Reply-To: References: Message-ID: <4A02D06B.7060703@ge.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Jonathan Haws wrote: > I need to generate an assembly listing that contains all the assembly > code generated by the compiler. I have tried putting the standard > GCC options in ppc_config.mk, but cannot get the results I am looking > for. > > What I need is a listing file that contains the address (preferably > with _start at 0x00000000) and the function name and any assembly > code with their respective addresses. ${CROSS_COMPILE}objdump -d The elf file can be unlinked or linked. You can also use the -S switch to stop gcc at the assembly language output level. > Can this easily be done? Yes. There are other switches available with gcc and objdump to do various things like interspersing the C source in with the (dis)assembly. > -- > Jonathan R. Haws Best regards, gvb