* Fixed i386 case jump table when PIC with GOT and an external assembler is used.
authoryury <yury@3ad0048d-3df7-0310-abae-a5850022a9f2>
Tue, 13 Oct 2015 12:58:19 +0000 (12:58 +0000)
committerAbou Al Montacir <abou.almontacir@sfr.fr>
Sat, 10 Jun 2017 17:13:48 +0000 (18:13 +0100)
git-svn-id: http://svn.freepascal.org/svn/ fpc/trunk@32036 3ad0048d-3df7-0310-abae-a5850022a9f2

Gbp-Pq: Name Fixed-i386-case-jump-table-when-PIC-with-GOT-and-an-.patch

fpcsrc/compiler/aggas.pas

index d1fbb2556f154e264e73b57d53e1e37506834bb4..db63e13d3334f9db1bdf4b72063312cfd6a9f38a 100644 (file)
@@ -977,7 +977,7 @@ implementation
                        cpu_i386:
                          begin
                            AsmWrite(ait_const2str[aitconst_32bit]);
-                           AsmWrite(tai_const(hp).sym.name);
+                           AsmWrite(tai_const(hp).sym.name+'-_GLOBAL_OFFSET_TABLE_');
                          end;
                      else
                        InternalError(2014022602);