[PATCH] D66583: [yaml2obj] - Allow setting the symbol st_other field to any integer.
George Rimar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 22 05:12:17 PDT 2019
grimar created this revision.
grimar added reviewers: jhenderson, MaskRay.
Herald added subscribers: seiya, rupprecht, atanasyan, arichardson, sdardis.
st_other field of a symbol usually contains its visibility.
Other bits are usually 0, though some targets, like
MIPS can set them using the named bit field values.
Problem is that there is no way to set an arbitrary value now,
though that might be useful for our test cases.
In this patch I introduced a way to set st_other to any numeric
value using the new `StOther` field.
I added a test and simplified the existent one to show the effect/benefit.
https://reviews.llvm.org/D66583
Files:
lib/ObjectYAML/ELFYAML.cpp
test/tools/llvm-readobj/elf-symbol-visibility.test
test/tools/yaml2obj/elf-symbol-stother.yaml
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D66583.216587.patch
Type: text/x-patch
Size: 5993 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190822/3166667e/attachment.bin>
More information about the llvm-commits
mailing list