]> Git Repo - binutils.git/blobdiff - gas/config/tc-i386.c
Increment length by 1 if the relocation token is removed
[binutils.git] / gas / config / tc-i386.c
index 56c06005fe26e481a3c9a216b6155115b685f06e..641af39a15cbcc5aece1c274ed6a419da4b21740 100644 (file)
@@ -6783,8 +6783,6 @@ lex_got (enum bfd_reloc_code_real *rel,
              char *tmpbuf, *past_reloc;
 
              *rel = gotrel[j].rel[object_64bit];
-             if (adjust)
-               *adjust = len;
 
              if (types)
                {
@@ -6819,6 +6817,12 @@ lex_got (enum bfd_reloc_code_real *rel,
                /* Replace the relocation token with ' ', so that
                   errors like foo@GOTOFF1 will be detected.  */
                tmpbuf[first++] = ' ';
+             else
+               /* Increment length by 1 if the relocation token is
+                  removed.  */
+               len++;
+             if (adjust)
+               *adjust = len;
              memcpy (tmpbuf + first, past_reloc, second);
              tmpbuf[first + second] = '\0';
              return tmpbuf;
This page took 0.024813 seconds and 4 git commands to generate.