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
This commit is contained in:
parent
01618b339f
commit
7fb37371e8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=318954
@ -67,11 +67,6 @@ typedef struct {
|
|||||||
round(prev_offset + prev_size, align)
|
round(prev_offset + prev_size, align)
|
||||||
#define calculate_tls_end(off, size) ((off) + (size))
|
#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);
|
extern void *__tls_get_addr(tls_index *ti);
|
||||||
|
|
||||||
#define RTLD_DEFAULT_STACK_PF_EXEC PF_X
|
#define RTLD_DEFAULT_STACK_PF_EXEC PF_X
|
||||||
|
@ -67,11 +67,6 @@ typedef struct {
|
|||||||
round(prev_offset + prev_size, align)
|
round(prev_offset + prev_size, align)
|
||||||
#define calculate_tls_end(off, size) ((off) + (size))
|
#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);
|
extern void *__tls_get_addr(tls_index *ti);
|
||||||
|
|
||||||
#define RTLD_DEFAULT_STACK_PF_EXEC PF_X
|
#define RTLD_DEFAULT_STACK_PF_EXEC PF_X
|
||||||
|
@ -53,11 +53,6 @@ Elf_Addr reloc_jmpslot(Elf_Addr *where, Elf_Addr target,
|
|||||||
#define call_ifunc_resolver(ptr) \
|
#define call_ifunc_resolver(ptr) \
|
||||||
(((Elf_Addr (*)(void))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
|
* PLT functions. Not really correct prototypes, but the
|
||||||
* symbol values are needed.
|
* symbol values are needed.
|
||||||
|
@ -53,11 +53,6 @@ Elf_Addr reloc_jmpslot(Elf_Addr *where, Elf_Addr target,
|
|||||||
#define call_ifunc_resolver(ptr) \
|
#define call_ifunc_resolver(ptr) \
|
||||||
(((Elf_Addr (*)(void))ptr)())
|
(((Elf_Addr (*)(void))ptr)())
|
||||||
|
|
||||||
/*
|
|
||||||
* Lazy binding entry point, called via PLT.
|
|
||||||
*/
|
|
||||||
void _rtld_bind_start(void);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* TLS
|
* TLS
|
||||||
*/
|
*/
|
||||||
|
@ -79,11 +79,6 @@ Elf_Addr reloc_jmpslot(Elf_Addr *where, Elf_Addr target,
|
|||||||
#define call_ifunc_resolver(ptr) \
|
#define call_ifunc_resolver(ptr) \
|
||||||
(((Elf_Addr (*)(void))ptr)())
|
(((Elf_Addr (*)(void))ptr)())
|
||||||
|
|
||||||
/*
|
|
||||||
* Lazy binding entry point, called via PLT.
|
|
||||||
*/
|
|
||||||
void _rtld_bind_start(void);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* TLS
|
* TLS
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user