History

elf, uapi: Add types ElfXX_Verdef and ElfXX_Veraux

The types are used by tools/testing/selftests/vDSO/parse_vdso.c. To be able to build the vDSO selftests without a libc dependency, add the types to the kernels own UAPI headers.

Thomas Weißschuh committed 1 year ago

Commit e0d15891 parent 2c86f601 file · +30 −0Browse files

Showing the changes to include/uapi/linux (1 of 1 file). Show all

Unified · Split

include/uapi/linux/elf.h+30−0
@@ -491,4 +491,34 @@ typedef struct elf64_note { · 490 unmodified lines
491/* Bits for GNU_PROPERTY_AARCH64_FEATURE_1_BTI */491/* Bits for GNU_PROPERTY_AARCH64_FEATURE_1_BTI */
492#define GNU_PROPERTY_AARCH64_FEATURE_1_BTI (1U << 0)492#define GNU_PROPERTY_AARCH64_FEATURE_1_BTI (1U << 0)
493 493
494typedef struct {
495 Elf32_Half vd_version;
496 Elf32_Half vd_flags;
497 Elf32_Half vd_ndx;
498 Elf32_Half vd_cnt;
499 Elf32_Word vd_hash;
500 Elf32_Word vd_aux;
501 Elf32_Word vd_next;
502} Elf32_Verdef;
503
504typedef struct {
505 Elf64_Half vd_version;
506 Elf64_Half vd_flags;
507 Elf64_Half vd_ndx;
508 Elf64_Half vd_cnt;
509 Elf64_Word vd_hash;
510 Elf64_Word vd_aux;
511 Elf64_Word vd_next;
512} Elf64_Verdef;
513
514typedef struct {
515 Elf32_Word vda_name;
516 Elf32_Word vda_next;
517} Elf32_Verdaux;
518
519typedef struct {
520 Elf64_Word vda_name;
521 Elf64_Word vda_next;
522} Elf64_Verdaux;
523
494#endif /* _UAPI_LINUX_ELF_H */524#endif /* _UAPI_LINUX_ELF_H */