custom_section.wast 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. ;;-------------------------------------------------------------------------------------------------------
  2. ;; Copyright (C) Microsoft Corporation and contributors. All rights reserved.
  3. ;; Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
  4. ;;-------------------------------------------------------------------------------------------------------
  5. ;; Reference: https://github.com/WebAssembly/spec/blob/master/interpreter/test/custom_section.wast
  6. ;; See ..\..\WasmSpec\testsuite\LICENSE for license details
  7. (module
  8. "\00asm" "\01\00\00\00"
  9. "\00\24\10" "a custom section" "this is the payload"
  10. "\00\20\10" "a custom section" "this is payload"
  11. "\00\11\10" "a custom section" ""
  12. "\00\10\00" "" "this is payload"
  13. "\00\01\00" "" ""
  14. "\00\24\10" "\00\00custom sectio\00" "this is the payload"
  15. )
  16. (module
  17. "\00asm" "\01\00\00\00"
  18. "\00\0e\06" "custom" "payload"
  19. "\00\0e\06" "custom" "payload"
  20. "\01\01\00" ;; type section
  21. "\00\0e\06" "custom" "payload"
  22. "\00\0e\06" "custom" "payload"
  23. "\02\01\00" ;; import section
  24. "\00\0e\06" "custom" "payload"
  25. "\00\0e\06" "custom" "payload"
  26. "\03\01\00" ;; function section
  27. "\00\0e\06" "custom" "payload"
  28. "\00\0e\06" "custom" "payload"
  29. "\04\01\00" ;; table section
  30. "\00\0e\06" "custom" "payload"
  31. "\00\0e\06" "custom" "payload"
  32. "\05\01\00" ;; memory section
  33. "\00\0e\06" "custom" "payload"
  34. "\00\0e\06" "custom" "payload"
  35. "\06\01\00" ;; global section
  36. "\00\0e\06" "custom" "payload"
  37. "\00\0e\06" "custom" "payload"
  38. "\07\01\00" ;; export section
  39. "\00\0e\06" "custom" "payload"
  40. "\00\0e\06" "custom" "payload"
  41. "\09\01\00" ;; element section
  42. "\00\0e\06" "custom" "payload"
  43. "\00\0e\06" "custom" "payload"
  44. "\0a\01\00" ;; code section
  45. "\00\0e\06" "custom" "payload"
  46. "\00\0e\06" "custom" "payload"
  47. "\0b\01\00" ;; data section
  48. "\00\0e\06" "custom" "payload"
  49. "\00\0e\06" "custom" "payload"
  50. )
  51. (module
  52. "\00asm" "\01\00\00\00"
  53. "\01\07\01\60\02\7f\7f\01\7f" ;; type section
  54. "\00\1a\06" "custom" "this is the payload" ;; custom section
  55. "\03\02\01\00" ;; function section
  56. "\07\0a\01\06\61\64\64\54\77\6f\00\00" ;; export section
  57. "\0a\09\01\07\00\20\00\20\01\6a\0b" ;; code section
  58. "\00\1b\07" "custom2" "this is the payload" ;; custom section
  59. )