aboutsummaryrefslogtreecommitdiff
path: root/ld/emultempl
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2005-09-07 05:01:53 +0000
committerH.J. Lu <hjl.tools@gmail.com>2005-09-07 05:01:53 +0000
commit12b9ff6c8bf7bd8040dfdd5a05bcf24672b30b3e (patch)
treebd6d4a7ad9b75fda6517f5c58488288a7ecc0d3c /ld/emultempl
parent68f49ba3355656a7050c2e50ba1e3f359207c51c (diff)
downloadgdb-12b9ff6c8bf7bd8040dfdd5a05bcf24672b30b3e.zip
gdb-12b9ff6c8bf7bd8040dfdd5a05bcf24672b30b3e.tar.gz
gdb-12b9ff6c8bf7bd8040dfdd5a05bcf24672b30b3e.tar.bz2
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.
Diffstat (limited to 'ld/emultempl')
-rw-r--r--ld/emultempl/elf32.em5
1 files changed, 5 insertions, 0 deletions
diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em
index 2764a59..15d2722 100644
--- a/ld/emultempl/elf32.em
+++ b/ld/emultempl/elf32.em
@@ -124,6 +124,11 @@ gld${EMULATION_NAME}_load_symbols (lang_input_statement_type *entry)
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;