diff options
author | Alan Modra <amodra@gmail.com> | 2019-02-24 18:01:08 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2019-02-24 18:57:13 +1030 |
commit | a894d76ab1afb0e16116eb16eef3f5621d62e6ab (patch) | |
tree | d0bc40e3e855a6591610f87f77161dd2129de514 /gas | |
parent | f616c36b79d0776e51213b177e45a0f5d386cc58 (diff) | |
download | gdb-a894d76ab1afb0e16116eb16eef3f5621d62e6ab.zip gdb-a894d76ab1afb0e16116eb16eef3f5621d62e6ab.tar.gz gdb-a894d76ab1afb0e16116eb16eef3f5621d62e6ab.tar.bz2 |
Re: PowerPC __tls_get_addr arg parsing
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.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 4 | ||||
-rw-r--r-- | gas/config/tc-ppc.c | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 03c9b4e..ac18471 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,5 +1,9 @@ 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 * config/obj-aout.c (obj_aout_frob_file_before_fix): Write to end of section to ensure file contents cover aligned section size. diff --git a/gas/config/tc-ppc.c b/gas/config/tc-ppc.c index 35d85a4..c71fe94 100644 --- a/gas/config/tc-ppc.c +++ b/gas/config/tc-ppc.c @@ -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. */ |