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 Message-Id: <200307311239.h6VCdNe27056@r-rr.iij4u.or.jp>
3 Cc: kkojima@rr.iij4u.or.jp
4 Subject: Re: Writing PIC version of __udivsi3_i4? (was: Re: "make tests" fails
5 with "libc.so: text relocations used" in glibc-2.3.2 for sh4)
6 In-Reply-To: Your message of "Wed, 30 Jul 2003 21:55:54 -0700"
7 <3F28A15A.5010400@kegel.com>
8 References: <3F28A15A.5010400@kegel.com>
9 Date: Thu, 31 Jul 2003 21:47:38 +0900
10 From: kaz Kojima <kkojima@rr.iij4u.or.jp>
12 Dan Kegel <dank@kegel.com> wrote:
13 >> I'll give binutils-2.14.90.0.5 a shot, then.
15 > No joy - same problem. Guess I'll take this up on binutils and/or libc-alpha.
17 Please try the patch below, though it's a diff against the current
23 diff -u3p ORIG/src/bfd/elf32-sh.c LOCAL/src/bfd/elf32-sh.c
24 --- src/bfd/elf32-sh.c.old Fri Jul 25 14:46:58 2003
25 +++ src/bfd/elf32-sh.c Thu Jul 31 21:09:38 2003
26 @@ -6497,8 +6497,10 @@ sh_elf_check_relocs (bfd *abfd, struct b
31 if (sec->flags & SEC_READONLY)
32 info->flags |= DF_TEXTREL;
34 elf_section_data (sec)->sreloc = sreloc;