[#5528] fs/binfmt_elf_fdpic.c build fails when CONFIG_ELF_CORE is enabled in 2.6.31

Document created by Aaronwu Employee on Sep 4, 2013
Version 1Show Document
  • View in full screen mode

[#5528] fs/binfmt_elf_fdpic.c build fails when CONFIG_ELF_CORE is enabled in 2.6.31

Submitted By: Mike Frysinger

Open Date

2009-09-11 19:26:27     Close Date

2009-09-14 17:21:58


Medium     Assignee:

Mike Frysinger


Closed     Fixed In Release:


Found In Release:

2010R1     Release:

trunk 7305


N/A     Board:



ALL     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:


Uboot version or rev.:

    Toolchain version or rev.:


App binary format:


Summary: fs/binfmt_elf_fdpic.c build fails when CONFIG_ELF_CORE is enabled in 2.6.31



fs/binfmt_elf_fdpic.c:1478: error: field ‘fpu’ has incomplete type

fs/binfmt_elf_fdpic.c: In function ‘elf_fdpic_core_dump’:

fs/binfmt_elf_fdpic.c:1664: error: dereferencing pointer to incomplete type

fs/binfmt_elf_fdpic.c:1736: error: dereferencing pointer to incomplete type

make[1]: *** [fs/binfmt_elf_fdpic.o] Error 1

make: *** [fs/binfmt_elf_fdpic.o] Error 2




--- Sonic Zhang                                              2009-09-14 06:41:35

This bug is caused by Mike's patch to LKML.


[PATCH 07/17] Blackfin: convert user/elf to asm-generic


diff --git a/arch/blackfin/include/asm/user.h


index afe6a0e..4792a60 100644

--- a/arch/blackfin/include/asm/user.h

+++ b/arch/blackfin/include/asm/user.h

@@ -1,89 +1 @@

-#ifndef _BFIN_USER_H

-#define _BFIN_USER_H


-/* Changes by Tony Kou   Lineo, Inc.  July, 2001

- *

- * Based include/asm-m68knommu/user.h

- *

- */


-/* Core file format: The core file is written in such a way that gdb

-   can understand it and provide useful information to the user (under

-   linux we use the 'trad-core' bfd).  There are quite a number of

-   obstacles to being able to view the contents of the floating point

-   registers, and until these are solved you will not be able to view the

-   contents of them.  Actually, you can read in the core file and look at

-   the contents of the user struct to find out what the floating point

-   registers contain.

-   The actual file contents are as follows:

-   UPAGE: 1 page consisting of a user struct that tells gdb what is present

-   in the file.  Directly after this is a copy of the task_struct, which

-   is currently not used by gdb, but it may come in useful at some point.

-   All of the registers are stored as part of the upage.  The upage should

-   always be only one page.

-   DATA: The data area is stored.  We use current->end_text to

-   current->brk to pick up all of the user variables, plus any memory

-   that may have been malloced.  No attempt is made to determine if a page

-   is demand-zero or if a page is totally unused, we just cover the entire

-   range.  All of the addresses are rounded in such a way that an integral

-   number of pages is written.

-   STACK: We need the stack information in order to get a meaningful

-   backtrace.  We need to write the data from (esp) to

-   current->start_stack, so we round each of these off in order to be able

-   to write an integer number of pages.

-   The minimum core file size is 3 pages, or 12288 bytes.


-struct user_bfinfp_struct {



--- Sonic Zhang                                              2009-09-14 06:58:22

There is no definition in include/asm-generic/user.h


--- Mike Frysinger                                           2009-09-14 17:21:58

thanks for tracking that down.  should be fixed now.












File Name     File Type     File Size     Posted By

No Files Were Found