]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Re: PowerPC __tls_get_addr arg parsing
authorAlan Modra <amodra@gmail.com>
Sun, 24 Feb 2019 07:31:08 +0000 (18:01 +1030)
committerAlan Modra <amodra@gmail.com>
Sun, 24 Feb 2019 08:27:13 +0000 (18:57 +1030)
Fixes non-ELF powerpc build failure:
tc-ppc.c:3009:1: error: ‘parse_tls_arg’ defined but not used

* config/tc-ppc.c (parse_tls_arg): Wrap in #ifdef OBJ_ELF.

gas/ChangeLog
gas/config/tc-ppc.c

index 03c9b4e9aec16990b0844d9fb4a0711d95c6f55c..ac18471f13b4e34186f5fd31e94019d5d6cfb61b 100644 (file)
@@ -1,3 +1,7 @@
+2019-02-24  Alan Modra  <amodra@gmail.com>
+
+       * config/tc-ppc.c (parse_tls_arg): Wrap in #ifdef OBJ_ELF.
+
 2019-02-24  Alan Modra  <amodra@gmail.com>
 
        PR 24144
index 35d85a4520cba50ba71d498d5efccecae51f2716..c71fe94294c34cd4b2558efd9e412b2f481297a9 100644 (file)
@@ -2999,6 +2999,7 @@ fixup_size (bfd_reloc_code_real_type reloc, bfd_boolean *pc_relative)
   return size;
 }
 
+#ifdef OBJ_ELF
 /* If we have parsed a call to __tls_get_addr, parse an argument like
    (gd0@tlsgd).  *STR is the leading parenthesis on entry.  If an arg
    is successfully parsed, *STR is updated past the trailing
@@ -3035,6 +3036,7 @@ parse_tls_arg (char **str, const expressionS *exp, struct ppc_fixup *tls_fix)
     }
   return tls_fix->reloc != BFD_RELOC_NONE;
 }
+#endif
 
 /* This routine is called for each instruction to be assembled.  */