diff options
Diffstat (limited to 'ld')
-rw-r--r-- | ld/ChangeLog | 5 | ||||
-rw-r--r-- | ld/ldmisc.c | 7 |
2 files changed, 11 insertions, 1 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index 9d159db..67ffbe4 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2004-07-01 H.J. Lu <hongjiu.lu@intel.com> + + * ldmisc.c (vfinfo): Call bfd_get_section_ident to identify + the section. + 2004-06-29 Alan Modra <amodra@bigpond.net.au> * ldlang.c (lang_reset_memory_regions): Save last relax pass section diff --git a/ld/ldmisc.c b/ld/ldmisc.c index def598d..3e8b371 100644 --- a/ld/ldmisc.c +++ b/ld/ldmisc.c @@ -241,6 +241,7 @@ vfinfo (FILE *fp, const char *fmt, va_list arg) const char *functionname; unsigned int linenumber; bfd_boolean discard_last; + char *sec_name; abfd = va_arg (arg, bfd *); section = va_arg (arg, asection *); @@ -269,7 +270,11 @@ vfinfo (FILE *fp, const char *fmt, va_list arg) } } - lfinfo (fp, "%B(%s+0x%v)", abfd, section->name, offset); + sec_name = bfd_get_section_ident (section); + lfinfo (fp, "%B(%s+0x%v)", abfd, + sec_name ? sec_name : section->name, offset); + if (sec_name) + free (sec_name); discard_last = TRUE; if (bfd_find_nearest_line (abfd, section, asymbols, offset, |