Added loading policies based on GNU property compilation flags sandbox/akazmin/gnu_comp_flags_policy
authorAndrey Kazmin <a.kazmin@partner.samsung.com>
Wed, 22 Jan 2020 12:35:22 +0000 (15:35 +0300)
committerAndrey Kazmin <a.kazmin@partner.samsung.com>
Mon, 27 Jan 2020 13:20:15 +0000 (16:20 +0300)
commit71ee15d87aeacb320950adf91827403e3677e84b
tree865c46b8e1e7a676589f7d6d046c9130d4bdf41c
parentd99401ce5c12bd1cb73a7173a4fca969eedead2b
Added loading policies based on GNU property compilation flags

Compare loader and and loading objects GNU compilation flags.
Print warning or raise an error in case of their incompatibility.
Policy is based on compile-time definitions and could be overridden
by LD_OVR_LOAD_POLICY environment variable.
The following values are valid for LD_OVR_LOAD_POLICY:
ignore warn strict

Signed-off-by: Andrey Kazmin <a.kazmin@partner.samsung.com>
13 files changed:
elf/dl-load.c
elf/dl-object.c
elf/dl-prop.h [new file with mode: 0644]
elf/dl-support.c
elf/elf.h
elf/rtld.c
include/link.h
packaging/glibc.spec
sysdeps/generic/dl-prop-map.h [new file with mode: 0644]
sysdeps/generic/dl-prop.h [deleted file]
sysdeps/generic/ldsodefs.h
sysdeps/x86/dl-prop-map.h [new file with mode: 0644]
sysdeps/x86/dl-prop.h [deleted file]