From 4a306ef1c8ff1cac292c2fd56a3b91d7bfdecefc Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Mon, 13 Nov 2017 08:02:39 -0800 Subject: ld.so: Add architecture specific fields To support Intel Control-flow Enforcement Technology (CET) run-time control: 1. An architecture specific field in the writable ld.so namespace is needed to indicate if CET features are enabled at run-time. 2. An architecture specific field in struct link_map is needed if CET features are enabled in an ELF module. This patch adds dl-procruntime.c to the writable ld.so namespace and link_map.h to struct link_map. Tested with build-many-glibcs.py. * elf/dl-support.c: Include . * include/link.h: Include . * sysdeps/generic/dl-procruntime.c: New file. * sysdeps/generic/link_map.h: Likewise. * sysdeps/generic/ldsodefs.h: Include in the writable ld.so namespace. --- sysdeps/generic/dl-procruntime.c | 1 + 1 file changed, 1 insertion(+) create mode 100644 sysdeps/generic/dl-procruntime.c (limited to 'sysdeps/generic/dl-procruntime.c') diff --git a/sysdeps/generic/dl-procruntime.c b/sysdeps/generic/dl-procruntime.c new file mode 100644 index 0000000000..a056184690 --- /dev/null +++ b/sysdeps/generic/dl-procruntime.c @@ -0,0 +1 @@ +/* No architecture specific definitions. */ -- cgit v1.2.3-70-g09d2