[m-rev.] diff: make shared libs work in asm_fast grades on x86_64

Julien Fischer juliensf at csse.unimelb.edu.au
Tue Aug 1 18:02:16 AEST 2006


On Tue, 1 Aug 2006, Julien Fischer wrote:

> I'm not going to commit this until I fix some problems with some of
> the G12 components w.r.t to PIC.
>
> Estimated hours taken: 4.5
> Branches: main, release
>
> Add support for shared libraries on x86_64 Linux.
>
> configure.in:
> 	Enable for support for shared libraries on x86-64 Linux ELF
> 	systems.
>
> 	Make the default linkage shared on x86_64.
>
> runtime/machdeps/x86_64_regs.h:
> 	Add an explanation of a problem with our use of r15 as a global
> 	register and PIC with the medium and large code models.  (We
> 	don't encounter this problem because we currently use the small
> 	code model.)
>
> 	Fix the comments attached to the register variable declarations.
> 	We do not have three different versions of succip.
>
> runtime/mercury_goto.h:
> 	Add x86_64 specific hacks.
>
> scripts/mgnuc.in:
> 	Conform to the above changes.

A late addition, the above also requires:

Index: ml.in
===================================================================
RCS file: /home/mercury1/repository/mercury/scripts/ml.in,v
retrieving revision 1.115
diff -u -r1.115 ml.in
--- ml.in	25 Oct 2005 10:17:28 -0000	1.115
+++ ml.in	1 Aug 2006 07:48:34 -0000
@@ -124,16 +124,6 @@
  				mercury_libs=static
  				;;
  			esac
-		;;
-		x86_64-*-linux*)
-			# Shared libraries are also not the default on x86_64
-			# (XXX at least for the moment - eventually they should
-			# be.)
-			case $make_shared_lib in false)
-				mercury_libs=static
-				;;
-			esac
-		;;
  	esac
  	;;
  esac
@@ -156,12 +146,6 @@
  				all_libs=static
  				;;
  			esac
-			;;
-		x86_64-*-linux*)
-			case $make_shared_lib in false)
-				all_libs=static
-				;;
-			esac
  		;;
  	esac
  	;;

--------------------------------------------------------------------------
mercury-reviews mailing list
Post messages to:       mercury-reviews at csse.unimelb.edu.au
Administrative Queries: owner-mercury-reviews at csse.unimelb.edu.au
Subscriptions:          mercury-reviews-request at csse.unimelb.edu.au
--------------------------------------------------------------------------



More information about the reviews mailing list