summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ObjectYAML
diff options
context:
space:
mode:
authorPeter Smith <peter.smith@linaro.org>2019-11-29 19:12:49 +0000
committerPeter Smith <peter.smith@linaro.org>2019-12-04 15:38:12 +0000
commit2120612e46bc9c1b0826618229154b76cdf41309 (patch)
tree2f7c5db79c41fd81260a88ebf983a78f40013523 /llvm/lib/ObjectYAML
parent678f1284a6a5e316c940200681594d4888e0a895 (diff)
downloadbcm5719-llvm-2120612e46bc9c1b0826618229154b76cdf41309.tar.gz
bcm5719-llvm-2120612e46bc9c1b0826618229154b76cdf41309.zip
[ELF] Support for PT_GNU_PROPERTY in header and tools
The PT_GNU_PROPERTY is generated by a linker to describe the .note.gnu.property section. The Linux kernel uses this program header to locate the .note.gnu.property section. It is described in "The Linux gABI extension" Include support for llvm-readelf, llvm-readobj and the yaml reader and writers. Differential Revision: https://reviews.llvm.org/D70959
Diffstat (limited to 'llvm/lib/ObjectYAML')
-rw-r--r--llvm/lib/ObjectYAML/ELFYAML.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/ObjectYAML/ELFYAML.cpp b/llvm/lib/ObjectYAML/ELFYAML.cpp
index 2a9d51486f6..c8de7a662fc 100644
--- a/llvm/lib/ObjectYAML/ELFYAML.cpp
+++ b/llvm/lib/ObjectYAML/ELFYAML.cpp
@@ -54,6 +54,7 @@ void ScalarEnumerationTraits<ELFYAML::ELF_PT>::enumeration(
ECase(PT_GNU_EH_FRAME);
ECase(PT_GNU_STACK);
ECase(PT_GNU_RELRO);
+ ECase(PT_GNU_PROPERTY);
#undef ECase
IO.enumFallback<Hex32>(Value);
}
OpenPOWER on IntegriCloud