From: amodra Date: Sun, 8 Dec 2002 03:47:56 +0000 (+0000) Subject: * subsegs.c (section_symbol): Use the symbol, not the section, name. X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=645722add9561e0fc382f72403104aad00b5b986;p=pf3gnuchains%2Fsourceware.git * subsegs.c (section_symbol): Use the symbol, not the section, name. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index fbc9ba0af1..075d857696 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,7 @@ +2002-12-08 Alan Modra + + * subsegs.c (section_symbol): Use the symbol, not the section, name. + 2002-12-05 Richard Henderson * config/ia64.c (enum reloc_func): Add FUNC_LT_RELATIVE_X. diff --git a/gas/subsegs.c b/gas/subsegs.c index a546b92525..dfdb0009cb 100644 --- a/gas/subsegs.c +++ b/gas/subsegs.c @@ -426,7 +426,7 @@ subseg_get (segname, force_new) if (! seginfo) { /* Check whether output_section is set first because secptr may - be bfd_abs_section_ptr. */ + be bfd_abs_section_ptr. */ if (secptr->output_section != secptr) secptr->output_section = secptr; seginfo = (segment_info_type *) xmalloc (sizeof (*seginfo)); @@ -529,13 +529,13 @@ section_symbol (sec) if (! EMIT_SECTION_SYMBOLS || symbol_table_frozen) { /* Here we know it won't be going into the symbol table. */ - s = symbol_create (sec->name, sec, 0, &zero_address_frag); + s = symbol_create (sec->symbol->name, sec, 0, &zero_address_frag); } else { - s = symbol_find_base (sec->name, 0); + s = symbol_find_base (sec->symbol->name, 0); if (s == NULL) - s = symbol_new (sec->name, sec, 0, &zero_address_frag); + s = symbol_new (sec->symbol->name, sec, 0, &zero_address_frag); else { if (S_GET_SEGMENT (s) == undefined_section)