public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* [Linux-ia64] latest glibc snapshot does not build on ia64?
@ 2002-09-03 16:26 Randolph Chung
  2002-09-03 16:55 ` Wichmann, Mats D
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Randolph Chung @ 2002-09-03 16:26 UTC (permalink / raw)
  To: linux-ia64

Haven't dug into this too much yet; wanted to see if anyone else has
seen this?

CPP='gcc-3.2 -E -x c-header'  /home/randolph/debian/glibc-package/ia64-linux/obj
/elf/ld-linux-ia64.so.2 --library-path /home/randolph/debian/glibc-package/ia64-
linux/obj:/home/randolph/debian/glibc-package/ia64-linux/obj/math:/home/randolph
/debian/glibc-package/ia64-linux/obj/elf:/home/randolph/debian/glibc-package/ia6
4-linux/obj/dlfcn:/home/randolph/debian/glibc-package/ia64-linux/obj/nss:/home/r
andolph/debian/glibc-package/ia64-linux/obj/nis:/home/randolph/debian/glibc-pack
age/ia64-linux/obj/rt:/home/randolph/debian/glibc-package/ia64-linux/obj/resolv:
/home/randolph/debian/glibc-package/ia64-linux/obj/crypt:/home/randolph/debian/g
libc-package/ia64-linux/obj/linuxthreads /home/randolph/debian/glibc-package/ia6
4-linux/obj/sunrpc/rpcgen -Y ../scripts -c rpcsvc/bootparam_prot.x -o /home/rand
olph/debian/glibc-package/ia64-linux/obj/sunrpc/xbootparam_prot.T
.././scripts/mkinstalldirs /home/randolph/debian/glibc-package/ia64-linux/obj/su
nrpc/rpcsvc
Inconsistency detected by ld.so: ../sysdeps/ia64/dl-machine.h: 591: elf_machine_
rela: Assertion `! "unexpected dynamic reloc format"' failed!

this is while building glibc 2.2.93 with gcc-3.2.1 (20020830) and binutils
2.13.90.0.4 20020814

randolph
--  
Randolph Chung
Debian GNU/Linux Developer, hppa/ia64 ports
http://www.tausq.org/


^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: [Linux-ia64] latest glibc snapshot does not build on ia64?
  2002-09-03 16:26 [Linux-ia64] latest glibc snapshot does not build on ia64? Randolph Chung
@ 2002-09-03 16:55 ` Wichmann, Mats D
  2002-09-03 17:46 ` Randolph Chung
  2002-09-03 19:00 ` Andreas Schwab
  2 siblings, 0 replies; 4+ messages in thread
From: Wichmann, Mats D @ 2002-09-03 16:55 UTC (permalink / raw)
  To: linux-ia64

> Haven't dug into this too much yet; wanted to see if anyone else has
> seen this?

Yup.

There's a short glibc patch which takes care of this (should be on the
Debian lists, else I can mail it to you once I get my machine back up).
It's an "unofficial"  patch because it's felt the problem really lies 
with binutils and not glibc, so it's not in glibc cvs.   The change
is to dl-machine.h if it helps search...

> 
> CPP='gcc-3.2 -E -x c-header'  
> /home/randolph/debian/glibc-package/ia64-linux/obj
> /elf/ld-linux-ia64.so.2 --library-path 
> /home/randolph/debian/glibc-package/ia64-
> linux/obj:/home/randolph/debian/glibc-package/ia64-linux/obj/m
> ath:/home/randolph
> /debian/glibc-package/ia64-linux/obj/elf:/home/randolph/debian
> /glibc-package/ia6
> 4-linux/obj/dlfcn:/home/randolph/debian/glibc-package/ia64-lin
> ux/obj/nss:/home/r
> andolph/debian/glibc-package/ia64-linux/obj/nis:/home/randolph
> /debian/glibc-pack
> age/ia64-linux/obj/rt:/home/randolph/debian/glibc-package/ia64
> -linux/obj/resolv:
> /home/randolph/debian/glibc-package/ia64-linux/obj/crypt:/home
> /randolph/debian/g
> libc-package/ia64-linux/obj/linuxthreads 
> /home/randolph/debian/glibc-package/ia6
> 4-linux/obj/sunrpc/rpcgen -Y ../scripts -c 
> rpcsvc/bootparam_prot.x -o /home/rand
> olph/debian/glibc-package/ia64-linux/obj/sunrpc/xbootparam_prot.T
> .././scripts/mkinstalldirs 
> /home/randolph/debian/glibc-package/ia64-linux/obj/su
> nrpc/rpcsvc
> Inconsistency detected by ld.so: 
> ../sysdeps/ia64/dl-machine.h: 591: elf_machine_
> rela: Assertion `! "unexpected dynamic reloc format"' failed!
> 
> this is while building glibc 2.2.93 with gcc-3.2.1 (20020830) 
> and binutils
> 2.13.90.0.4 20020814
> 
> randolph
> --  
> Randolph Chung
> Debian GNU/Linux Developer, hppa/ia64 ports
> http://www.tausq.org/
> 
> _______________________________________________
> Linux-IA64 mailing list
> Linux-IA64@linuxia64.org
> http://lists.linuxia64.org/lists/listinfo/linux-ia64
> 


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Linux-ia64] latest glibc snapshot does not build on ia64?
  2002-09-03 16:26 [Linux-ia64] latest glibc snapshot does not build on ia64? Randolph Chung
  2002-09-03 16:55 ` Wichmann, Mats D
@ 2002-09-03 17:46 ` Randolph Chung
  2002-09-03 19:00 ` Andreas Schwab
  2 siblings, 0 replies; 4+ messages in thread
From: Randolph Chung @ 2002-09-03 17:46 UTC (permalink / raw)
  To: linux-ia64

In reference to a message from Wichmann, Mats D, dated Sep 03:
> 
> > Haven't dug into this too much yet; wanted to see if anyone else has
> > seen this?
> 
> Yup.
> 
> There's a short glibc patch which takes care of this (should be on the
> Debian lists, else I can mail it to you once I get my machine back up).
> It's an "unofficial"  patch because it's felt the problem really lies 
> with binutils and not glibc, so it's not in glibc cvs.   The change
> is to dl-machine.h if it helps search...

there was a IA64_RELOC_NONE patch, but in a different area of glibc...
looks like we just hit it again at a different spot now...


    580   /* ??? Ignore MSB and Instruction format for now.  */
    581   if (R_IA64_FORMAT (r_type) = R_IA64_FORMAT_64LSB)
    582     *reloc_addr = value;
    583   else if (R_IA64_FORMAT (r_type) = R_IA64_FORMAT_32LSB)
    584     *(int *) reloc_addr = value;
    585   else if (r_type = R_IA64_IPLTLSB)
    586     {
    587       reloc_addr[0] = 0;
    588       reloc_addr[1] = 0;
    589     }
    590   else
    591     assert (! "unexpected dynamic reloc format");

r_type is 0 at the assertion 

randolph


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Linux-ia64] latest glibc snapshot does not build on ia64?
  2002-09-03 16:26 [Linux-ia64] latest glibc snapshot does not build on ia64? Randolph Chung
  2002-09-03 16:55 ` Wichmann, Mats D
  2002-09-03 17:46 ` Randolph Chung
@ 2002-09-03 19:00 ` Andreas Schwab
  2 siblings, 0 replies; 4+ messages in thread
From: Andreas Schwab @ 2002-09-03 19:00 UTC (permalink / raw)
  To: linux-ia64

Randolph Chung <randolph@tausq.org> writes:

|> In reference to a message from Wichmann, Mats D, dated Sep 03:
|> > 
|> > > Haven't dug into this too much yet; wanted to see if anyone else has
|> > > seen this?
|> > 
|> > Yup.
|> > 
|> > There's a short glibc patch which takes care of this (should be on the
|> > Debian lists, else I can mail it to you once I get my machine back up).
|> > It's an "unofficial"  patch because it's felt the problem really lies 
|> > with binutils and not glibc, so it's not in glibc cvs.   The change
|> > is to dl-machine.h if it helps search...
|> 
|> there was a IA64_RELOC_NONE patch, but in a different area of glibc...
|> looks like we just hit it again at a different spot now...

It's actually the same spot, but the context has changed a bit.  Here is
an updated patch:

Index: dl-machine.h
=================================RCS file: /cvs/glibc/libc/sysdeps/ia64/dl-machine.h,v
retrieving revision 1.20
diff -u -p -a -u -p -a -r1.20 dl-machine.h
--- dl-machine.h	6 Apr 2002 00:33:23 -0000	1.20
+++ dl-machine.h	3 Sep 2002 18:58:59 -0000
@@ -546,12 +546,11 @@ elf_machine_rela (struct link_map *map,
 # endif
         value += map->l_addr;
     }
-# ifndef RTLD_BOOTSTRAP
-  else if (r_type = R_IA64_NONE)
-    return;
-# endif
   else
 #endif
+  if (r_type = R_IA64_NONE)
+    return;
+  else
     {
       struct link_map *sym_map;
 

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-09-03 19:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-03 16:26 [Linux-ia64] latest glibc snapshot does not build on ia64? Randolph Chung
2002-09-03 16:55 ` Wichmann, Mats D
2002-09-03 17:46 ` Randolph Chung
2002-09-03 19:00 ` Andreas Schwab

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox