]> git.ipfire.org Git - thirdparty/glibc.git/commit
ld.so: Add architecture specific fields
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 13 Nov 2017 16:02:39 +0000 (08:02 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 13 Nov 2017 16:02:52 +0000 (08:02 -0800)
commit4a306ef1c8ff1cac292c2fd56a3b91d7bfdecefc
tree48c4360f23ee98ce4355b932ba66b4c1226de0a7
parente69897bf202e18034cbef26f363bae64de70a196
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 <dl-procruntime.c>.
* include/link.h: Include <link_map.h>.
* sysdeps/generic/dl-procruntime.c: New file.
* sysdeps/generic/link_map.h: Likewise.
* sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
the writable ld.so namespace.
ChangeLog
elf/dl-support.c
include/link.h
sysdeps/generic/dl-procruntime.c [new file with mode: 0644]
sysdeps/generic/ldsodefs.h
sysdeps/generic/link_map.h [new file with mode: 0644]