diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2000-11-16 19:29:12 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2000-11-16 19:29:12 +0000 |
commit | 6f62085610f2bf4edaf68b696e98a8167ac08ca8 (patch) | |
tree | f9dc227fe7b72fa25636c8492adce471698fbe93 | |
parent | e206b66f34e10474865474d3ae0dbfb0e0841ec2 (diff) | |
download | ppe42-binutils-6f62085610f2bf4edaf68b696e98a8167ac08ca8.tar.gz ppe42-binutils-6f62085610f2bf4edaf68b696e98a8167ac08ca8.zip |
2000-11-16 H.J. Lu <hjl@gnu.org>
* config/obj-elf.c (obj_elf_symver): Don't check the missing
version name.
-rw-r--r-- | gas/ChangeLog | 5 | ||||
-rw-r--r-- | gas/config/obj-elf.c | 8 |
2 files changed, 7 insertions, 6 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 2245150585..32d904e446 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2000-11-16 H.J. Lu <hjl@gnu.org> + + * config/obj-elf.c (obj_elf_symver): Don't check the missing + version name. + 2000-11-15 Kazu Hirata <kazu@hxi.com> * config/tc-tic30.c: Fix formatting. diff --git a/gas/config/obj-elf.c b/gas/config/obj-elf.c index 267f544987..d56eaa9c35 100644 --- a/gas/config/obj-elf.c +++ b/gas/config/obj-elf.c @@ -1127,16 +1127,12 @@ obj_elf_symver (ignore) 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, |