mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-25 21:41:47 +08:00
Fix bug emitting R_SPARC_UA32 relocs into shared objects
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2001-09-14 Michael Rauch <mrauch@netbsd.org>
|
||||||
|
|
||||||
|
* elf32-sparc.c (elf32_sparc_relocate_section): Treat R_SPARC_UA32
|
||||||
|
just like R_SPARC_32.
|
||||||
|
|
||||||
2001-09-14 Kevin Lo <kevlo@openbsd.org>
|
2001-09-14 Kevin Lo <kevlo@openbsd.org>
|
||||||
|
|
||||||
* configure.bfd: Add arm-openbsd target.
|
* configure.bfd: Add arm-openbsd target.
|
||||||
|
@ -1491,7 +1491,7 @@ elf32_sparc_relocate_section (output_bfd, info, input_bfd, input_section,
|
|||||||
}
|
}
|
||||||
else
|
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_info = ELF32_R_INFO (0, R_SPARC_RELATIVE);
|
||||||
outrel.r_addend = relocation + rel->r_addend;
|
outrel.r_addend = relocation + rel->r_addend;
|
||||||
|
Reference in New Issue
Block a user