aboutsummaryrefslogtreecommitdiff
path: root/bfd/elflink.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2004-07-22 14:19:04 +0000
committerH.J. Lu <hjl.tools@gmail.com>2004-07-22 14:19:04 +0000
commit08ccf96b08ce2ef122d880c1531f77cf54fdd09d (patch)
tree370eccf2b9319ca137d4130167eeb6ed09fee00e /bfd/elflink.c
parent526355d21789871e2fb5f86b3b9086776e8e6195 (diff)
downloadgdb-08ccf96b08ce2ef122d880c1531f77cf54fdd09d.zip
gdb-08ccf96b08ce2ef122d880c1531f77cf54fdd09d.tar.gz
gdb-08ccf96b08ce2ef122d880c1531f77cf54fdd09d.tar.bz2
bfd/
2004-07-22 H.J. Lu <hongjiu.lu@intel.com> * elflink.c (elf_fixup_link_order): Issue a warning and flag an error if failed. ld/ 2004-07-22 H.J. Lu <hongjiu.lu@intel.com> * ld-scripts/crossref.exp: XFAIL ia64-*-* on the first test.
Diffstat (limited to 'bfd/elflink.c')
-rw-r--r--bfd/elflink.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/bfd/elflink.c b/bfd/elflink.c
index f75dbac..e3f5e4a 100644
--- a/bfd/elflink.c
+++ b/bfd/elflink.c
@@ -7252,7 +7252,12 @@ elf_fixup_link_order (bfd *abfd, asection *o)
return TRUE;
if (seen_other && seen_linkorder)
- return FALSE;
+ {
+ (*_bfd_error_handler) ("%s: has both ordered and unordered sections",
+ o->name);
+ bfd_set_error (bfd_error_bad_value);
+ return FALSE;
+ }
sections = (struct bfd_link_order **)
xmalloc (seen_linkorder * sizeof (struct bfd_link_order *));