From 7fb37371e806ed867fab87436e70fb60d7e1e5e3 Mon Sep 17 00:00:00 2001 From: Eric van Gyzen Date: Fri, 26 May 2017 15:55:03 +0000 Subject: [PATCH] rtld: fix warnings about redundant declarations Fix warnings about redundant declarations in rtld when libthr in increased to WARNS=6. Reviewed by: kib MFC after: 3 days Sponsored by: Dell EMC Differential Revision: https://reviews.freebsd.org/D10934 --- libexec/rtld-elf/arm/rtld_machdep.h | 5 ----- libexec/rtld-elf/mips/rtld_machdep.h | 5 ----- libexec/rtld-elf/powerpc/rtld_machdep.h | 5 ----- libexec/rtld-elf/powerpc64/rtld_machdep.h | 5 ----- libexec/rtld-elf/riscv/rtld_machdep.h | 5 ----- 5 files changed, 25 deletions(-) diff --git a/libexec/rtld-elf/arm/rtld_machdep.h b/libexec/rtld-elf/arm/rtld_machdep.h index 5639defd6657..de57929c1a4a 100644 --- a/libexec/rtld-elf/arm/rtld_machdep.h +++ b/libexec/rtld-elf/arm/rtld_machdep.h @@ -67,11 +67,6 @@ typedef struct { round(prev_offset + prev_size, align) #define calculate_tls_end(off, size) ((off) + (size)) -/* - * Lazy binding entry point, called via PLT. - */ -void _rtld_bind_start(void); - extern void *__tls_get_addr(tls_index *ti); #define RTLD_DEFAULT_STACK_PF_EXEC PF_X diff --git a/libexec/rtld-elf/mips/rtld_machdep.h b/libexec/rtld-elf/mips/rtld_machdep.h index 85360615f9dc..93a589ab5eac 100644 --- a/libexec/rtld-elf/mips/rtld_machdep.h +++ b/libexec/rtld-elf/mips/rtld_machdep.h @@ -67,11 +67,6 @@ typedef struct { round(prev_offset + prev_size, align) #define calculate_tls_end(off, size) ((off) + (size)) -/* - * Lazy binding entry point, called via PLT. - */ -void _rtld_bind_start(void); - extern void *__tls_get_addr(tls_index *ti); #define RTLD_DEFAULT_STACK_PF_EXEC PF_X diff --git a/libexec/rtld-elf/powerpc/rtld_machdep.h b/libexec/rtld-elf/powerpc/rtld_machdep.h index b4e8b1524ad3..5eb8288b8d8d 100644 --- a/libexec/rtld-elf/powerpc/rtld_machdep.h +++ b/libexec/rtld-elf/powerpc/rtld_machdep.h @@ -53,11 +53,6 @@ Elf_Addr reloc_jmpslot(Elf_Addr *where, Elf_Addr target, #define call_ifunc_resolver(ptr) \ (((Elf_Addr (*)(void))ptr)()) -/* - * Lazy binding entry point, called via PLT. - */ -void _rtld_bind_start(void); - /* * PLT functions. Not really correct prototypes, but the * symbol values are needed. diff --git a/libexec/rtld-elf/powerpc64/rtld_machdep.h b/libexec/rtld-elf/powerpc64/rtld_machdep.h index a0fed7ff642c..820248afa6c9 100644 --- a/libexec/rtld-elf/powerpc64/rtld_machdep.h +++ b/libexec/rtld-elf/powerpc64/rtld_machdep.h @@ -53,11 +53,6 @@ Elf_Addr reloc_jmpslot(Elf_Addr *where, Elf_Addr target, #define call_ifunc_resolver(ptr) \ (((Elf_Addr (*)(void))ptr)()) -/* - * Lazy binding entry point, called via PLT. - */ -void _rtld_bind_start(void); - /* * TLS */ diff --git a/libexec/rtld-elf/riscv/rtld_machdep.h b/libexec/rtld-elf/riscv/rtld_machdep.h index 95669ffe542a..bb1f6868f1ac 100644 --- a/libexec/rtld-elf/riscv/rtld_machdep.h +++ b/libexec/rtld-elf/riscv/rtld_machdep.h @@ -79,11 +79,6 @@ Elf_Addr reloc_jmpslot(Elf_Addr *where, Elf_Addr target, #define call_ifunc_resolver(ptr) \ (((Elf_Addr (*)(void))ptr)()) -/* - * Lazy binding entry point, called via PLT. - */ -void _rtld_bind_start(void); - /* * TLS */