diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2005-04-25 14:59:09 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2005-04-25 14:59:09 +0000 |
commit | 6d633fd2827c7c46c05c45b75781ca8ab6a9afce (patch) | |
tree | 1a0e86abc4dc46bb84fb6b723e1ba33c4307403d /bfd/elflink.c | |
parent | bee59fd28b6134cf8d4e8435b1dedc638ee9f6ea (diff) | |
download | gdb-6d633fd2827c7c46c05c45b75781ca8ab6a9afce.zip gdb-6d633fd2827c7c46c05c45b75781ca8ab6a9afce.tar.gz gdb-6d633fd2827c7c46c05c45b75781ca8ab6a9afce.tar.bz2 |
bfd/
2005-04-25 H.J. Lu <hongjiu.lu@intel.com>
PR 858
* elflink.c (elf_link_input_bfd): Make non-debugging reference
to discarded section an error.
ld/testsuite/
2005-04-25 H.J. Lu <hongjiu.lu@intel.com>
* ld-discard/extern.d: Expect error.
* ld-discard/start.d: Likewise.
* ld-discard/static.d: Likewise.
Diffstat (limited to 'bfd/elflink.c')
-rw-r--r-- | bfd/elflink.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bfd/elflink.c b/bfd/elflink.c index 017ebe4..cd9131e 100644 --- a/bfd/elflink.c +++ b/bfd/elflink.c @@ -7048,6 +7048,8 @@ elf_link_input_bfd (struct elf_final_link_info *finfo, bfd *input_bfd) (_("`%s' referenced in section `%A' of %B: " "defined in discarded section `%A' of %B"), o, input_bfd, sec, sec->owner, sym_name); + bfd_set_error (bfd_error_bad_value); + return FALSE; } /* Try to do the best we can to support buggy old |