diff options
author | Alan Modra <amodra@gmail.com> | 2010-08-31 05:34:46 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2010-08-31 05:34:46 +0000 |
commit | 91952a0680337a97f30637955148946e0681d6f6 (patch) | |
tree | 074e49e641631ab9fbc378c27ff7109b63181c40 | |
parent | 6be999b8666bacc82acfef7c911f9c5b4636f6f2 (diff) | |
download | gdb-91952a0680337a97f30637955148946e0681d6f6.zip gdb-91952a0680337a97f30637955148946e0681d6f6.tar.gz gdb-91952a0680337a97f30637955148946e0681d6f6.tar.bz2 |
* config/obj-elf.c (obj_elf_init_stab_section): Fix assertion.
-rw-r--r-- | gas/ChangeLog | 4 | ||||
-rw-r--r-- | gas/config/obj-elf.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 420c41e..70f25a7 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,7 @@ +2010-08-31 Alan Modra <amodra@gmail.com> + + * config/obj-elf.c (obj_elf_init_stab_section): Fix assertion. + 2010-08-30 Richard Henderson <rth@redhat.com> * config/obj-coff-seh.c: Rewrite the entire file. diff --git a/gas/config/obj-elf.c b/gas/config/obj-elf.c index fc22d6e..e9ae4ea 100644 --- a/gas/config/obj-elf.c +++ b/gas/config/obj-elf.c @@ -1,6 +1,6 @@ /* ELF object file format Copyright 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, - 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 + 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. This file is part of GAS, the GNU Assembler. @@ -1795,7 +1795,7 @@ obj_elf_init_stab_section (segT seg) strcpy (stabstr_name, segment_name (seg)); strcat (stabstr_name, "str"); stroff = get_stab_string_offset (file, stabstr_name); - know (stroff == 1); + know (stroff == 1 || (stroff == 0 && file[0] == '\0')); md_number_to_chars (p, stroff, 4); seg_info (seg)->stabu.p = p; } |