Subject: Re: reloc sym ""
To: matthew green <mrg@eterna.com.au>
From: Michael Rauch <mrauch@netbsd.org>
List: tech-toolchain
Date: 09/10/2001 20:17:45
Hi, 

On Mon, Sep 10, 2001 at 05:39:31PM +0200, Michael Rauch wrote:
> [...]
> OK, got further: 
> The problem seems to be ld. [...]
> 
> I'm trying to find the relevant portion in binutils now ...

at least for me the following patch (against binutils-2.11.2, but the 
relevant portion is still the same in CVS) let's my test program work 
again. 
I'm going to send this back to the GNU binutils-people. 
If someone wants to test this patch, I would appreciate if he/she could 
mail me whether it works or not. 


Michael

--------- snip ... patch (.../binutils-2.11.2/ is ./) ------------
--- /aux/binutils-2.11.2/bfd/elf32-sparc.c      Mon Jun 11 12:04:13 2001
+++ bfd/elf32-sparc.c   Mon Sep 10 18:15:11 2001
@@ -1478,7 +1478,7 @@
                }
              else
                {
-                 if (r_type == R_SPARC_32)
+                 if (r_type == R_SPARC_32 || r_type == R_SPARC_UA32)
                    {
                      outrel.r_info = ELF32_R_INFO (0, R_SPARC_RELATIVE);
                      outrel.r_addend = relocation + rel->r_addend;