This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
PATCH: ld/1263: ld reports: libgdbmciv.so: could not read symbols: File format not recognized
- From: "H. J. Lu" <hjl at lucon dot org>
- To: binutils at sources dot redhat dot com
- Date: Tue, 6 Sep 2005 19:41:21 -0700
- Subject: PATCH: ld/1263: ld reports: libgdbmciv.so: could not read symbols: File format not recognized
This patch will generate a proper error message.
H.J.
----
2005-09-06 H.J. Lu <hongjiu.lu@intel.com>
PR ld/1263
* emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Check
--just-symbols on DSO.
--- ld/emultempl/elf32.em.just 2005-09-02 06:59:00.000000000 -0700
+++ ld/emultempl/elf32.em 2005-09-06 19:36:53.000000000 -0700
@@ -128,6 +128,11 @@ gld${EMULATION_NAME}_load_symbols (lang_
if (!entry->add_needed)
class |= DYN_NO_ADD_NEEDED;
+ if (entry->just_syms_flag
+ && (bfd_get_file_flags (entry->the_bfd) & DYNAMIC) != 0)
+ einfo (_("%P%F: --just-symbols may not be used on DSO: %B\n"),
+ entry->the_bfd);
+
if (!class
|| (bfd_get_file_flags (entry->the_bfd) & DYNAMIC) == 0)
return FALSE;