[PATCH] D58762: [BinaryFormat] Add DT_USED tag into dynamic section.
Xing via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 28 00:25:51 PST 2019
Higuoxing updated this revision to Diff 188683.
Higuoxing added a comment.
Address @grimar 's comment.
- Add one test
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D58762/new/
https://reviews.llvm.org/D58762
Files:
include/llvm/BinaryFormat/DynamicTags.def
test/tools/obj2yaml/dynamic-section.test
Index: test/tools/obj2yaml/dynamic-section.test
===================================================================
--- test/tools/obj2yaml/dynamic-section.test
+++ test/tools/obj2yaml/dynamic-section.test
@@ -122,6 +122,8 @@
# CHECK-NEXT: Value: 0x0000000000000035
# CHECK-NEXT: - Tag: DT_VERNEEDNUM
# CHECK-NEXT: Value: 0x0000000000000036
+# CHECK-NEXT: - Tag: DT_USED
+# CHECK-NEXT: Value: 0x0000000000000001
!ELF
FileHeader:
@@ -246,3 +248,5 @@
Value: 0x0000000000000035
- Tag: DT_VERNEEDNUM
Value: 0x0000000000000036
+ - Tag: DT_USED
+ Value: 0x0000000000000001
Index: include/llvm/BinaryFormat/DynamicTags.def
===================================================================
--- include/llvm/BinaryFormat/DynamicTags.def
+++ include/llvm/BinaryFormat/DynamicTags.def
@@ -196,6 +196,7 @@
// Sun machine-independent extensions.
DYNAMIC_TAG(AUXILIARY, 0x7FFFFFFD) // Shared object to load before self
+DYNAMIC_TAG(USED, 0x7FFFFFFE) // Same as DT_NEEDED
DYNAMIC_TAG(FILTER, 0x7FFFFFFF) // Shared object to get values from
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58762.188683.patch
Type: text/x-patch
Size: 1227 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190228/1c5c0e89/attachment.bin>
More information about the llvm-commits
mailing list