Apply patch from misc/13927. Also corresponds to master binutils

rev 1.24 of this file.  Binutils log message:

Fri Sep 14 13:56:45 2001 UTC by nickc:
Fix bug emitting R_SPARC_UA32 relocs into shared objects
This commit is contained in:
thorpej 2001-10-24 21:01:31 +00:00
parent 678788904a
commit 98f31d05a1
1 changed files with 1 additions and 1 deletions

View File

@ -1478,7 +1478,7 @@ elf32_sparc_relocate_section (output_bfd, info, input_bfd, input_section,
}
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;