On Wed, Feb 05, 2003 at 09:06:42AM +0100, Rene Engelhard wrote:
>
> Hi,
>
> [ please Cc: me, as I am not subscribed to -68k ]
>
> anyone of you know what causes the follwing build failure and what to do?
> Versions till -3 built successfully; but binutils got updated
> recently...
>
> http://buildd.debian.org/fetch.php?&pkg=firestarter&ver=0.9.1-4&arch=m68k&stamp=1044431895&file=log&as=raw
known problem in binutils. Temporary workaround is to patch glibc
like this:
--- glibc-2.2.90/sysdeps/m68k/dl-machine.h.rz Mon Aug 26 11:44:44 2002
+++ glibc-2.2.90/sysdeps/m68k/dl-machine.h Mon Aug 26 11:45:31 2002
@@ -311,6 +311,8 @@
Elf32_Addr *const reloc_addr = (void *) (l_addr + reloc->r_offset);
if (ELF32_R_TYPE (reloc->r_info) == R_68K_JMP_SLOT)
*reloc_addr += l_addr;
+ else if (ELF32_R_TYPE (reloc->r_info) == R_68K_NONE)
+ return;
else
_dl_reloc_bad_type (map, ELF32_R_TYPE (reloc->r_info), 1);
}
No idea if it is fixed or going to be fixed in some newer binutils.
The inefficiency introduced by this patch is minimal so it won´t
hurt if it stays in glibc for a while.
Richard
Attachment:
pgphAraftgKm8.pgp
Description: PGP signature