public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: "H . J . Lu" <hjl@lucon.org>
To: Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
Cc: GNU C Library <libc-alpha@sourceware.cygnus.com>,
	binutils@sourceware.cygnus.com
Subject: Re: binutils: "unexpected reloc type 0x17" on sparc
Date: Thu, 28 Jun 2001 14:32:00 -0000	[thread overview]
Message-ID: <20010628142842.B4072@lucon.org> (raw)
In-Reply-To: <Pine.LNX.4.21.0106282306000.11781-100000@rudy.mif.pg.gda.pl>

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1989 bytes --]

On Thu, Jun 28, 2001 at 11:19:44PM +0200, Tomasz K³oczko wrote:
> 
> Seems somewhere between binutils 2.11.90.0.8 and 2.11.90.0.19 was
> inroduced some king bug which causes generate by ld mangled binaries on
> sparc. I have few development enviroment. One thon them is on some sparc
> and on the same computer in chroot()ed enviroment I have other. In chroot
> I have binutils 2.11.90.0.19 and in main 2.11.90.0.8. In both I have the
> same compiler (gcc 2.95.3) and the same glibc (2.2.3) version (the same
> gcc and glibc binaries in both enviroments).
> 
> Few days ago I observe in chroot some binaries binaries fails on execution
> with "unexpected reloc type 0x17". As experiment in both enviroments I try
> find some diffrence and I found. For example I try rebuild glibc using
> newer binutils (2.11.90.0.19) fails on:
> 
> -D_LIBC_REENTRANT -include ../include/libc-symbols.h -D_RPC_THREAD_SAFE_
> -o rpcinfo.o gcc -nostdlib -nostartfiles -o rpcinfo
> -Wl,-dynamic-linker=/lib/ld-linux.so.2 ../csu/crt1.o ../csu/crti.o `gcc
> --print-file-name=crtbegin.o` rpcinfo.o
> -Wl,-rpath-link=..:../math:../elf:../dlfcn:../nss:../nis:../rt:../resolv:../crypt:../linuxthreads
> ../libc.so.6 ../libc_nonshared.a -lgcc `gcc --print-file-name=crtend.o`
> ../csu/crtn.o ../elf/ld-linux.so.2 --library-path
> ..:../math:../elf:../dlfcn:../nss:../nis:../rt:../resolv:../crypt:../linuxthreads
> ./rpcgen -Y `gcc -print-file-name=cpp | sed 's|/cpp$||'` -c
> rpcsvc/bootparam_prot.x -o xbootparam_prot.T
> ./rpcgen: error while loading shared libraries: ../libc.so.6: unexpected reloc type 0x17
> make[1]: *** [xbootparam_prot.stmp] Error 127
> make[1]: Leaving directory
> `/home/users/builder/rpm/BUILD/glibc-2.2.3/sunrpc'
> make: *** [sunrpc/others] Error 2
> 
> I cant find what is going on and IMHO new ld from binutils probably is
> buggy.

0x17 == R_SPARC_UA32. The new linker generates them. I think glibc has
to be fixed to deal with R_SPARC_UA32, R_SPARC_UA64 and R_SPARC_UA16.


H.J.

       reply	other threads:[~2001-06-28 14:32 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <Pine.LNX.4.21.0106282306000.11781-100000@rudy.mif.pg.gda.pl>
2001-06-28 14:32 ` H . J . Lu [this message]
2001-06-28 15:11   ` David S. Miller
2001-06-28 15:17     ` Richard Henderson
2001-06-28 15:21       ` David S. Miller
2001-06-28 15:33         ` H . J . Lu
2001-06-28 15:39           ` David S. Miller
2001-06-28 15:36         ` Ian Lance Taylor
2001-06-28 15:43           ` David S. Miller
2001-06-28 16:51             ` Ian Lance Taylor
2001-06-28 22:14             ` Jakub Jelinek
2001-06-28 22:29               ` Alan Modra
2001-06-29  3:24                 ` [PATCH] " Jakub Jelinek
2001-06-29  9:46                   ` Ian Lance Taylor
2001-06-29 14:22                     ` David S. Miller
2001-06-29 10:00                   ` Ian Lance Taylor
2001-07-16 12:37                     ` Commited patch for elf*-sparc.c (was binutils: "unexpected reloc type 0x17" on sparc) Jakub Jelinek
2001-07-11 13:43                       ` Richard Henderson
2001-07-11 15:04                         ` Jakub Jelinek
2001-07-11 15:20                           ` Richard Henderson
2001-06-29 12:32                   ` [PATCH] Re: binutils: "unexpected reloc type 0x17" on sparc Tomasz
2001-06-29 15:00                     ` Ben Collins
2001-06-28 15:50         ` Richard Henderson
2001-06-28 15:34       ` Ian Lance Taylor
2001-06-28 15:32     ` Ian Lance Taylor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20010628142842.B4072@lucon.org \
    --to=hjl@lucon.org \
    --cc=binutils@sourceware.cygnus.com \
    --cc=kloczek@rudy.mif.pg.gda.pl \
    --cc=libc-alpha@sourceware.cygnus.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).