ELF: Simplify getFdeEncoding.
I found that the handling of 'L' character in an augmentation string is wrong because 'L' means that the next byte is the length field. I could have fixed that by just skipping the next byte, but I decided to take a different approach. Teaching the linker about all the types of CIE internal records just to skip them is silly. And the code doing that is not actually executed now (that's why the bug did not cause any issue.) It is because the 'R' field, which we want to read, is always at beginning of the CIE. So I reduced the code dramatically by assuming that that's always the case. I want to see how it works in the wild. If it doesn't work, we can roll this back (with a fix for 'L'). http://reviews.llvm.org/D16939 llvm-svn: 260073
Loading
Please sign in to comment