EhFrameCFI.inc 1.1 KB

1234567891011121314151617181920212223242526272829
  1. //-------------------------------------------------------------------------------------------------------
  2. // Copyright (C) Microsoft. All rights reserved.
  3. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
  4. //-------------------------------------------------------------------------------------------------------
  5. //
  6. // A subset of DWARF cfi
  7. //
  8. // instruction _2_6_ bits arg1 arg2
  9. //
  10. ENTRY_SM1( advance_loc, 0x1 << 6, ubyte )
  11. ENTRY_SM2( offset, 0x2 << 6, ubyte, ULEB128 )
  12. ENTRY_SM1( restore, 0x3 << 6, ubyte )
  13. ENTRY1 ( advance_loc1, 0x02, ubyte )
  14. ENTRY1 ( advance_loc2, 0x03, uhalf )
  15. ENTRY1 ( advance_loc4, 0x04, uword )
  16. ENTRY2 ( def_cfa, 0x0c, ULEB128, ULEB128 )
  17. ENTRY1 ( def_cfa_offset, 0x0e, ULEB128 )
  18. ENTRY ( nop, 0 )
  19. #undef ENTRY_SM1
  20. #undef ENTRY_SM2
  21. #undef ENTRY
  22. #undef ENTRY1
  23. #undef ENTRY2