[patch] Split Alignment out of the Section Characteristics
Rafael EspĂndola
rafael.espindola at gmail.com
Fri Apr 26 11:04:38 PDT 2013
Hi Michael,
I have converted obj2yaml to use yamlo. One problem I found comparing
a yaml -> .o -> yaml roundtrip is the section alignment. Unlike the
rest of the Characteristics field, it is just a plain byte, not a
series of flags. This causes a IMAGE_SCN_ALIGN_16BYTES to be printed
as
IMAGE_SCN_ALIGN_16BYTES, IMAGE_SCN_ALIGN_8BYTES, IMAGE_SCN_ALIGN_1BYTES
Since the yaml representation has a more semantic view of the file, I
think the best solution is to just add a distinct field for alignment
in the yaml representation.
Cheers,
Rafael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t.patch
Type: application/octet-stream
Size: 3933 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130426/964966f4/attachment.obj>
More information about the llvm-commits
mailing list