aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2002-02-04 04:42:29 +0000
committerHans-Peter Nilsson <hp@axis.com>2002-02-04 04:42:29 +0000
commit8017dbcb39aa6a23a2efb5c9a0ec9c1acafdba70 (patch)
tree74dd3814681a5e15b2afaa1771267bdf30b6c631 /ld
parenta27be4d5bfc65cc9b586a94c2e7fb4b36542cbe7 (diff)
downloadgdb-8017dbcb39aa6a23a2efb5c9a0ec9c1acafdba70.zip
gdb-8017dbcb39aa6a23a2efb5c9a0ec9c1acafdba70.tar.gz
gdb-8017dbcb39aa6a23a2efb5c9a0ec9c1acafdba70.tar.bz2
* emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
arithmetic when checking for too many global registers.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog5
-rw-r--r--ld/emultempl/mmix-elfnmmo.em4
2 files changed, 7 insertions, 2 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 7b46215..baee989 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,8 @@
+2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
+
+ * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
+ arithmetic when checking for too many global registers.
+
2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
* Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
diff --git a/ld/emultempl/mmix-elfnmmo.em b/ld/emultempl/mmix-elfnmmo.em
index 1b72a64..c6c7691 100644
--- a/ld/emultempl/mmix-elfnmmo.em
+++ b/ld/emultempl/mmix-elfnmmo.em
@@ -59,7 +59,7 @@ mmix_after_allocation ()
{
asection *sec
= bfd_get_section_by_name (output_bfd, MMIX_REG_CONTENTS_SECTION_NAME);
- bfd_vma regvma;
+ bfd_signed_vma regvma;
/* If there's no register section, we don't need to do anything. */
if (sec == NULL)
@@ -73,7 +73,7 @@ mmix_after_allocation ()
(unsigned) sec->_raw_size / 8);
/* Set vma to correspond to first such register number * 8. */
- bfd_set_section_vma (output_bfd, sec, regvma);
+ bfd_set_section_vma (output_bfd, sec, (bfd_vma) regvma);
/* ??? Why isn't the section size (_cooked_size) set? Doesn't it get
set regardless of presence of relocations? */