/* ELF object file format
- Copyright (C) 1992, 93, 94, 95, 96, 97, 98, 99, 2000
+ Copyright 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000
Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
if (symbol_get_obj (sym)->versioned_name == NULL)
{
- char *p, *rp;
-
symbol_get_obj (sym)->versioned_name = xstrdup (name);
*input_line_pointer = c;
- p = strchr (symbol_get_obj (sym)->versioned_name, ELF_VER_CHR);
- if (p)
- rp = strrchr (p, ELF_VER_CHR);
- if (!p || p [1] == '\0' || rp [1] == '\0')
+ if (strchr (symbol_get_obj (sym)->versioned_name,
+ ELF_VER_CHR) == NULL)
{
as_bad (_("missing version name in `%s' for symbol `%s'"),
symbol_get_obj (sym)->versioned_name,
#endif
}
-/* It removes any unneeded versioned symbols from the symbol table. */
+/* It removes any unneeded versioned symbols from the symbol table. */
void
elf_frob_file_before_adjust ()