Browse Source

* updated ppudump with the new asm symbol types and binding types

Nikolay Nikolov 3 years ago
parent
commit
21fd8cd5d3
1 changed files with 14 additions and 2 deletions
  1. 14 2
      compiler/utils/ppuutils/ppudump.pp

+ 14 - 2
compiler/utils/ppuutils/ppudump.pp

@@ -1188,7 +1188,8 @@ type
          AB_TEMP,
          { a global symbol that points to another global symbol and is only used
            to allow indirect loading in case of packages and indirect imports }
-         AB_INDIRECT,AB_EXTERNAL_INDIRECT);
+         AB_INDIRECT,AB_EXTERNAL_INDIRECT,
+         AB_WEAK);
 
        TAsmsymtype=(
          AT_NONE,AT_FUNCTION,AT_DATA,AT_SECTION,AT_LABEL,
@@ -1211,7 +1212,12 @@ type
          { Thread-local symbol (ELF targets) }
          AT_TLS,
          { GNU indirect function (ELF targets) }
-         AT_GNU_IFUNC
+         AT_GNU_IFUNC,
+         { WebAssembly global variable }
+         AT_WASM_GLOBAL,
+         { WebAssembly exception tag (used as a parameter for the 'throw' and
+           'catch' instructions) }
+         AT_WASM_EXCEPTION_TAG
          );
 
 var
@@ -1257,6 +1263,8 @@ begin
          bindstr:='Indirect';
        AB_EXTERNAL_INDIRECT :
          bindstr:='Indirect external';
+       AB_WEAK:
+         bindstr:='Weak';
        else
          begin
            bindstr:='<Error !!>';
@@ -1286,6 +1294,10 @@ begin
          typestr:='TLS';
        AT_GNU_IFUNC :
          typestr:='GNU IFUNC';
+       AT_WASM_GLOBAL:
+         typestr:='WebAssembly global variable';
+       AT_WASM_EXCEPTION_TAG:
+         typestr:='WebAssembly exception tag';
        else
          begin
            typestr:='<Error !!>';