diff options
author | H.J. Lu <hjl@lucon.org> | 2005-04-25 14:59:09 +0000 |
---|---|---|
committer | H.J. Lu <hjl@lucon.org> | 2005-04-25 14:59:09 +0000 |
commit | 26ee0b1e66e560cd85e1e0992b1cab9fc0f00e3d (patch) | |
tree | 29006a2ec33fc9392cf291728a4c95cf3110796e /bfd | |
parent | cee9fb64a1b910392715cf7158ce3c86a065ec68 (diff) | |
download | gdb-26ee0b1e66e560cd85e1e0992b1cab9fc0f00e3d.tar.gz |
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')
-rw-r--r-- | bfd/ChangeLog | 6 | ||||
-rw-r--r-- | bfd/elflink.c | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 5e9f707685d..9d8e077f425 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +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. + 2005-04-21 Jerome Guitton <guitton@gnat.com> * configure.in: Replace BFD_NEED_DECLARATION checks by the diff --git a/bfd/elflink.c b/bfd/elflink.c index 017ebe436a9..cd9131ef380 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 |