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
8 D.U.M.A. - Detect Unintended Memory Access
9 A memory bound checker, with additional features.
10 Formerly known as Electric Fence.
16 prompt "Build a static library"
21 prompt "Build a shared library"
22 default y if SHARED_LIBS
23 default n if ! SHARED_LIBS
27 prompt "D.U.M.A. version"
45 # CT_INSERT_VERSION_ABOVE
46 # Don't remove above line!
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!