[vms/committed]: Handle LIB$INITIALIZE

Tristan Gingold gingold@adacore.com
Wed Jun 2 07:59:00 GMT 2010


>> ===================================================================
>> +     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++]) =



More information about the Binutils mailing list