Move hidden_proto (__dl_iterate_phdr) to include/link.h [BZ #18822]

__dl_iterate_phdr is hidden and should be accessed directly within
libc.so and libc.a without using GOT nor PLT.

	[BZ #18822]
	* elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
	to ...
	* include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
This commit is contained in:
H.J. Lu 2017-10-01 16:09:20 -07:00
parent 3ee8209be7
commit a0aef7830e
3 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,10 @@
2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
[BZ #18822]
* elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
to ...
* include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
[BZ #18822]

View file

@ -28,7 +28,6 @@ cancel_handler (void *arg __attribute__((unused)))
__rtld_lock_unlock_recursive (GL(dl_load_write_lock));
}
hidden_proto (__dl_iterate_phdr)
int
__dl_iterate_phdr (int (*callback) (struct dl_phdr_info *info,
size_t size, void *data), void *data)

View file

@ -341,6 +341,7 @@ struct link_map
extern int __dl_iterate_phdr (int (*callback) (struct dl_phdr_info *info,
size_t size, void *data),
void *data);
hidden_proto (__dl_iterate_phdr)
/* We use this macro to refer to ELF macros independent of the native
wordsize. `ELFW(R_TYPE)' is used in place of `ELF32_R_TYPE' or