mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-24 22:10:13 +00:00
3020f72618
Instead of using a special ELF section along with a linker script directive to put the IO vtables within the RELRO section, the libio vtables are all moved to an array marked as data.relro (so linker will place in the RELRO segment without the need of extra directives). To avoid static linking namespace issues and including all vtable referenced objects, all required function pointers are set to weak alias. Checked on x86_64-linux-gnu, i686-linux-gnu, and aarch64-linux-gnu. Reviewed-by: Carlos O'Donell <carlos@redhat.com>
8 lines
198 B
Plaintext
8 lines
198 B
Plaintext
#include <libioP.h>
|
|
|
|
--
|
|
|
|
IO_JUMP_T_SIZE sizeof (struct _IO_jump_t)
|
|
IO_FILE_JUMPS_OFFSET sizeof (struct _IO_jump_t) * IO_FILE_JUMPS
|
|
IO_WFILE_JUMPS_OFFSET sizeof (struct _IO_jump_t) * IO_WFILE_JUMPS
|