From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mukesh Rathor Subject: PVOPS: missing some xen symbols in vmlinux Date: Thu, 26 May 2011 18:59:57 -0700 Message-ID: <20110526185957.776d2b16@mantra.us.oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "Xen-devel@lists.xensource.com" , Jeremy Fitzhardinge List-Id: xen-devel@lists.xenproject.org Hi Jeremy, I noticed in PVOPS kernels that lot of the xen functions in arch/x86/xen are not properly symbolized in vmlinux. These symbols show up just fine in arch/x86/built-in.o, but seem to be getting dropped along the way, it appears in the following step: ld -m elf_x86_64 --build-id -o .tmp_vmlinux1 -T arch/x86/kernel/vmlinux.lds arch/x86/kernel/head_64.o arch/x86/kernel/head64.o arch/x86/kernel/head.o arch/x86/kernel/init_task.o init/built-in.o --start-group usr/built-in.o arch/x86/built-in.o kernel/built-in.o mm/built-in.o fs/built-in.o ipc/built-in.o security/built-in.o crypto/built-in.o block/built-in.o lib/lib.a arch/x86/lib/lib.a lib/built-in.o arch/x86/lib/built-in.o drivers/built-in.o sound/built-in.o firmware/built-in.o arch/x86/pci/built-in.o arch/x86/power/built-in.o arch/x86/video/built-in.o net/built-in.o --end-group [mantra]../linux-2.6.39-mine/obj> nm .tmp_vmlinux1|grep xen_start_k ffffffff818c5b42 T xen_start_kernel bash> gdb .tmp_vmlinux1 (gdb) disass xen_start_kernel No function contains specified address. (gdb) disass 0xffffffff818c5b42 No function contains specified address. (gdb) disass native_read_cr4_safe Dump of assembler code for function native_read_cr4_safe: 0xffffffff8100300e : push %rbp 0xffffffff8100300f : mov %rsp,%rbp ... (gdb) disass xen_write_cr3 Dump of assembler code for function __brk_reservation_fn_level1_ident_pgt__: End of assembler dump. (gdb) disass arch_pick_mmap_layout Dump of assembler code for function arch_pick_mmap_layout: 0xffffffff81039bcb : push %rbp 0xffffffff81039bcc : mov %rsp,%rbp (gdb) disass raw_pci_read Dump of assembler code for function raw_pci_read: 0xffffffff813f82ac : push %rbp 0xffffffff813f82ad : mov %rsp,%rbp ... (gdb) disass make_lowmem_page_readonly Dump of assembler code for function __brk_reservation_fn_level1_ident_pgt__: End of assembler dump. bash> gdb vmlinux (gdb) disass make_lowmem_page_readonly Dump of assembler code for function __brk_reservation_fn_level1_ident_pgt__: End of assembler dump. I am trying to figure out what is it about those xen functions, any thoughts? thanks, Mukesh