about summary refs log tree commit diff
path: root/sysdeps/powerpc/powerpc32/dl-machine.h
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2019-12-17 15:55:59 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2019-12-19 09:49:57 -0300
commit0331bffe1be698d32c3b4a93b6e7f02d1f1b47fb (patch)
tree38e87cf97d7f3daea56534b73a86e8ebdb5daad2 /sysdeps/powerpc/powerpc32/dl-machine.h
parent3dcad8158f43d71d5b8f6f317f82952ddf3468f3 (diff)
downloadglibc-0331bffe1be698d32c3b4a93b6e7f02d1f1b47fb.tar.gz
glibc-0331bffe1be698d32c3b4a93b6e7f02d1f1b47fb.tar.xz
glibc-0331bffe1be698d32c3b4a93b6e7f02d1f1b47fb.zip
powerpc: Do not run IFUNC resolvers for LD_DEBUG=unused [BZ #24214]
This patch adds the missing bits for powerpc and fixes both
tst-ifunc-fault-lazy and tst-ifunc-fault-bindnow failures on
powerpc-linux-gnu.

Checked on powerpc-linux-gnu and powerpc-linux-gnu-power4.

Reviewed-by: Florian Weimer <fweimer@redhat.com>
Reviewed-by: Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
Diffstat (limited to 'sysdeps/powerpc/powerpc32/dl-machine.h')
-rw-r--r--sysdeps/powerpc/powerpc32/dl-machine.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/sysdeps/powerpc/powerpc32/dl-machine.h b/sysdeps/powerpc/powerpc32/dl-machine.h
index 528690107b..4b1265282e 100644
--- a/sysdeps/powerpc/powerpc32/dl-machine.h
+++ b/sysdeps/powerpc/powerpc32/dl-machine.h
@@ -273,7 +273,8 @@ extern void __process_machine_rela (struct link_map *map,
 				    const Elf32_Sym *refsym,
 				    Elf32_Addr *const reloc_addr,
 				    Elf32_Addr finaladdr,
-				    int rinfo) attribute_hidden;
+				    int rinfo, bool skip_ifunc)
+  attribute_hidden;
 
 /* Call _dl_signal_error when a resolved value overflows a relocated area.  */
 extern void _dl_reloc_overflow (struct link_map *map,
@@ -436,7 +437,7 @@ elf_machine_rela (struct link_map *map, const Elf32_Rela *reloc,
 
     default:
       __process_machine_rela (map, reloc, sym_map, sym, refsym,
-			      reloc_addr, value, r_type);
+			      reloc_addr, value, r_type, skip_ifunc);
     }
 }