diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2004-07-02 01:39:32 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2004-07-02 01:39:32 +0000 |
commit | b602c853d891e7b7885058bff76a796c2e47b42e (patch) | |
tree | 9909bc2499c111a7e8b20d5f6a2fbd27734fd99e /ld | |
parent | ac6b4428da2f037bd99718e5594a626cab6d1a47 (diff) | |
download | gdb-b602c853d891e7b7885058bff76a796c2e47b42e.zip gdb-b602c853d891e7b7885058bff76a796c2e47b42e.tar.gz gdb-b602c853d891e7b7885058bff76a796c2e47b42e.tar.bz2 |
bfd/
2004-07-01 H.J. Lu <hongjiu.lu@intel.com>
* bfd.c (bfd_get_section_ident): New.
* elflink.c (elf_link_read_relocs_from_section): Call
bfd_get_section_ident to identify the section when reporting
error.
(_bfd_elf_link_output_relocs): Likewise.
(elf_link_output_extsym): Likewise.
(elf_link_input_bfd): Likewise.
(bfd_elf_gc_record_vtinherit): Likewise.
* bfd-in2.h: Regenerated.
ld/
2004-07-01 H.J. Lu <hongjiu.lu@intel.com>
* ldmisc.c (vfinfo): Call bfd_get_section_ident to identify
the section.
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, |