config/debug/duma.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Thu Jul 31 09:08:33 2008 +0000 (2008-07-31)
changeset 752 b037a5643e04
parent 430 5b7efc8dbf85
child 850 ef8549b58b6f
permissions -rw-r--r--
Have the glibc build use the cross-objdump, rather than the host one.
On some distros (eg. Fedora), the native objdump can not interpret objects not for the native system, and thus fail.
This commit adds a new patch against glibc-2.7 that introduces OBJDUMP_FOR_HOST, wich, if set, overides the detected objdump.

Note: bizarely enough, glibc already has code to detect the cross-objdump, but that does not work for an unknown reason... :-(

/trunk/patches/glibc/2.7/220-objdump_for_host.patch | 13 13 0 0 +++++++++
/trunk/scripts/build/libc_glibc.sh | 37 21 16 0 +++++++++++++++------------
2 files changed, 34 insertions(+), 16 deletions(-)
     1 # D.U.M.A. - Detect Unintended Memory Access - Memory checker
     2 
     3 menuconfig DUMA
     4     bool
     5     prompt "D.U.M.A."
     6     default n
     7     help
     8       D.U.M.A. - Detect Unintended Memory Access
     9       A memory bound checker, with additional features.
    10       Formerly known as Electric Fence.
    11 
    12 if DUMA
    13 
    14 config DUMA_A
    15     bool
    16     prompt "Build a static library"
    17     default y
    18 
    19 config DUMA_SO
    20     bool
    21     prompt "Build a shared library"
    22     default y if SHARED_LIBS
    23     default n if ! SHARED_LIBS
    24 
    25 choice
    26     bool
    27     prompt "D.U.M.A. version"
    28 
    29 config DUMA_V_2_5_1
    30     bool
    31     prompt "2_5_1"
    32 
    33 config DUMA_V_2_5_8
    34     bool
    35     prompt "2_5_8"
    36 
    37 config DUMA_V_2_5_12
    38     bool
    39     prompt "2_5_12"
    40 
    41 config DUMA_V_2_5_14
    42     bool
    43     prompt "2_5_14"
    44 
    45 # CT_INSERT_VERSION_ABOVE
    46 # Don't remove above line!
    47 endchoice
    48 
    49 config DUMA_VERSION
    50     string
    51     default "2_5_1" if DUMA_V_2_5_1
    52     default "2_5_8" if DUMA_V_2_5_8
    53     default "2_5_12" if DUMA_V_2_5_12
    54     default "2_5_14" if DUMA_V_2_5_14
    55 # CT_INSERT_VERSION_STRING_ABOVE
    56 # Don't remove above line!
    57 
    58 endif