* config/obj-elf.c (obj_elf_symver): Check missing version
name.
+2000-11-12 H.J. Lu (hjl@gnu.org)
+
+ * config/obj-elf.c (obj_elf_symver): Check missing version
+ name.
+
2000-11-12 H.J. Lu (hjl@gnu.org)
* dwarf2dbg.c (dwarf2_generate_asm_lineno): Use addressT
if (symbol_get_obj (sym)->versioned_name == NULL)
{
+ char *p, *rp;
+
symbol_get_obj (sym)->versioned_name = xstrdup (name);
*input_line_pointer = c;
- if (strchr (symbol_get_obj (sym)->versioned_name,
- ELF_VER_CHR) == NULL)
+ 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')
{
as_bad (_("missing version name in `%s' for symbol `%s'"),
symbol_get_obj (sym)->versioned_name,