This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [vms/committed]: Handle LIB$INITIALIZE


>> ===================================================================
>> +     PRIV (transfer_address[i++]) = 0xffffffff00000340;	/* SYS$IMGACT */
> 
> on 32bit hosts with --enable-targets=all::
> vms-alpha.c:8685: error: integer constant is too large for ‘long’ type

Ah ah, right.

I am committing this patch to fix this issue.

Tristan.

bfd/
2010-06-02  Tristan Gingold  <gingold@adacore.com>

	* vms-alpha.c (alpha_vms_bfd_final_link): Fix 64bit constant.

diff --git a/bfd/vms-alpha.c b/bfd/vms-alpha.c
index d881e2f..a68114f 100644
--- a/bfd/vms-alpha.c
+++ b/bfd/vms-alpha.c
@@ -8682,7 +8682,7 @@ alpha_vms_bfd_final_link (bfd *abfd, struct bfd_link_info *info)
     struct bfd_link_hash_entry *h;
 
     i = 0;
-    PRIV (transfer_address[i++]) = 0xffffffff00000340; /* SYS$IMGACT */
+    PRIV (transfer_address[i++]) = 0xffffffff00000340ULL;      /* SYS$IMGACT */
     h = bfd_link_hash_lookup (info->hash, "LIB$INITIALIZE", FALSE, FALSE, TRUE);
     if (h != NULL && h->type == bfd_link_hash_defined)
       PRIV (transfer_address[i++]) =


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]