Explorar el Código

ldso/ARC: fix DT_RELACOUNT handling

With new binutils supporting DT_RELACOUNT, ldso was crashing as it was
parsing relocs incorrectly.

Apparently that code ran for first time and was never tested.

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Cupertino Miranda hace 8 años
padre
commit
ff6db61ba7
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      ldso/ldso/arc/dl-sysdep.h

+ 1 - 1
ldso/ldso/arc/dl-sysdep.h

@@ -166,7 +166,7 @@ static __always_inline void
 elf_machine_relative (Elf32_Addr load_off, const Elf32_Addr rel_addr,
 		      Elf32_Word relative_count)
 {
-	 Elf32_Rel * rpnt = (void *) rel_addr;
+	 Elf32_Rela * rpnt = (void *) rel_addr;
 	--rpnt;
 	do {
 		Elf32_Addr *const reloc_addr = (void *) (load_off + (++rpnt)->r_offset);