aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/sparc/sparc64
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/sparc/sparc64')
-rw-r--r--sysdeps/sparc/sparc64/dl-machine.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/sysdeps/sparc/sparc64/dl-machine.h b/sysdeps/sparc/sparc64/dl-machine.h
index c63dc074c0..b7f2d62c90 100644
--- a/sysdeps/sparc/sparc64/dl-machine.h
+++ b/sysdeps/sparc/sparc64/dl-machine.h
@@ -338,6 +338,16 @@ elf_machine_rela (struct link_map *map, const Elf64_Rela *reloc,
elf_machine_fixup_plt(map, 0, reloc, reloc_addr, value);
break;
#ifndef RTLD_BOOTSTRAP
+ case R_SPARC_UA16:
+ ((unsigned char *) reloc_addr) [0] = value >> 8;
+ ((unsigned char *) reloc_addr) [1] = value;
+ break;
+ case R_SPARC_UA32:
+ ((unsigned char *) reloc_addr) [0] = value >> 24;
+ ((unsigned char *) reloc_addr) [1] = value >> 16;
+ ((unsigned char *) reloc_addr) [2] = value >> 8;
+ ((unsigned char *) reloc_addr) [3] = value;
+ break;
case R_SPARC_UA64:
if (! ((long) reloc_addr & 3))
{