aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2020-04-22 11:52:13 +0930
committerAlan Modra <amodra@gmail.com>2020-04-22 22:24:03 +0930
commit31c89d6038f2658f5e06a762aa9e20e78e74651f (patch)
tree1ae7e0154824b7aeaaa5b8e1a6a8c83228e779eb /gas/config
parent54ac3df1adbf7b4b3470a8df08caa0aea4c89616 (diff)
downloadfsf-binutils-gdb-31c89d6038f2658f5e06a762aa9e20e78e74651f.zip
fsf-binutils-gdb-31c89d6038f2658f5e06a762aa9e20e78e74651f.tar.gz
fsf-binutils-gdb-31c89d6038f2658f5e06a762aa9e20e78e74651f.tar.bz2
.symver fixes
* config/obj-elf.c (elf_frob_symbol): Unconditionally remove symbol for ".symver .. remove". * doc/as.texi (.symver): Update. * testsuite/gas/symver/symver11.s: Make foo weak. * testsuite/gas/symver/symver11.d: Expect an error. * testsuite/gas/symver/symver7.d: Allow other random symbols.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/obj-elf.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gas/config/obj-elf.c b/gas/config/obj-elf.c
index 409ea4d..4bdddc9 100644
--- a/gas/config/obj-elf.c
+++ b/gas/config/obj-elf.c
@@ -2569,9 +2569,7 @@ elf_frob_symbol (symbolS *symp, int *puntp)
elfsym->internal_elf_sym.st_other |= STV_HIDDEN;
break;
case visibility_remove:
- /* Remove the symbol if it isn't used in relocation. */
- if (!symbol_used_in_reloc_p (symp))
- symbol_remove (symp, &symbol_rootP, &symbol_lastP);
+ symbol_remove (symp, &symbol_rootP, &symbol_lastP);
break;
case visibility_local:
S_CLEAR_EXTERNAL (symp);