This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]