PATCH: ld/1263: ld reports: libgdbmciv.so: could not read symbols: File format not recognized
H. J. Lu
hjl@lucon.org
Wed Sep 7 03:45:00 GMT 2005
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;
More information about the Binutils
mailing list