Browse Source

Avoid unsupported .uleb128 with diff of two sympbols for native solaris assembler

git-svn-id: trunk@32200 -
pierre 9 years ago
parent
commit
6d0c5b234b
1 changed files with 3 additions and 1 deletions
  1. 3 1
      compiler/dbgdwarf.pas

+ 3 - 1
compiler/dbgdwarf.pas

@@ -3472,7 +3472,9 @@ implementation
                     if (prevlabel = nil) or
                        { darwin's assembler cannot create an uleb128 of the difference }
                        { between to symbols                                            }
-                       (target_info.system in systems_darwin) then
+                       { same goes for Solaris native assembler                        }
+                       (target_info.system in systems_darwin) or
+                       (target_asm.id=as_solaris_as) then
                       begin
                         asmline.concat(tai_const.create_8bit(DW_LNS_extended_op));
                         asmline.concat(tai_const.create_uleb128bit(1+sizeof(pint)));