summaryrefslogtreecommitdiff
path: root/ldso
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2017-08-06 21:15:50 +0200
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2017-08-06 21:15:54 +0200
commit9db18d93811153fc9a70c9844fadc6fdf7cbbb64 (patch)
tree7fb0cc4058b18bff9c0d1eaffcc2c154b338e3aa /ldso
parent111f01d432d542a153c1cad83def3a6ab57df7af (diff)
microblaze: handle R_MICROBLAZE_NONE for ld.so bootstrap
Latest binutils 2.29 release emits a R_MICROBLAZE_NONE relocation, which breaks shared library loader bootstrap relocation.
Diffstat (limited to 'ldso')
-rw-r--r--ldso/ldso/microblaze/dl-startup.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/ldso/ldso/microblaze/dl-startup.h b/ldso/ldso/microblaze/dl-startup.h
index 720c53aab..16d57627d 100644
--- a/ldso/ldso/microblaze/dl-startup.h
+++ b/ldso/ldso/microblaze/dl-startup.h
@@ -82,18 +82,15 @@ static __always_inline
void PERFORM_BOOTSTRAP_RELOC(ELF_RELOC *rpnt, unsigned long *reloc_addr,
unsigned long symbol_addr, unsigned long load_addr, attribute_unused Elf32_Sym *symtab)
{
-
switch (ELF_R_TYPE(rpnt->r_info))
{
case R_MICROBLAZE_REL:
-
*reloc_addr = load_addr + rpnt->r_addend;
break;
-
+ case R_MICROBLAZE_NONE:
+ break;
default:
_dl_exit(1);
break;
-
}
-
}