From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f4671,b1738035b01d4980 X-Google-Attributes: gidf4671,public X-Google-Thread: 11035d,b1738035b01d4980 X-Google-Attributes: gid11035d,public X-Google-Thread: 1164f8,b1738035b01d4980 X-Google-Attributes: gid1164f8,public X-Google-Thread: 1070f0,b1738035b01d4980 X-Google-Attributes: gid1070f0,public From: Michael Brodeur Subject: Re: Why not Solaris on Alpha? Date: 1997/06/12 Message-ID: <33A00847.44E6@zko.dec.com>#1/1 X-Deja-AN: 247893920 Distribution: inet References: <5mrt16$eo3@percy.cs.bham.ac.uk> <3392DDE0.1FA7@world.std.com> <3396143F.2D46@nospam.nedernet.nl> <5n48q5$pgh@usenet.pa.dec.com> <5n7ij4$egk@panix.com> <5nkm87$vev$2@ns.destek.net> <339EC070.390D@brussels.lhs.be> <5nn2j5$12h@cucumber.demon.co.uk> Organization: CTG Newsgroups: comp.unix.solaris,comp.sys.sun.admin,comp.sys.sun.hardware,comp.sys.dec Andrew Gabriel wrote: > > Initially, none of the public domain software would run on it (if it > compiled and didn't crash on startup, it went like a snail with > alignment errors allover). Of course, over the last three years, this > has all(?) been fixed. (It would have been _really_ nice if DEC had > arranged that 64 bit pointers with the top half either all ones or > all zeros were always invalid, to trap code which saved a pointer in > an int at some stage. Unfortunately, valid pointers appear in this > range.) > I was an early adopter of Alpha (I worked for an ISV at the time) and can attest to the absolute pain that the original migration to 64-bits was. It was only software which had been through a similar transformation (16 -> 32 bits) which seemed to handle the 32 -> 64 bit translation well. However, what saved my hide then, as now (in those rare cases where apps are still ill-behaved) is the compiler's -taso option, which does what I think you want: -taso Directs the linker to load the executable file in the lower 31-bit addressable virtual address range. The -T and -D flags to the ld com- mand can also be used, respectively, to ensure that the text and data segments addresses are loaded into low memory. The -taso flag, however, in addition to setting default addresses for text and data segments, also causes shared libraries linked outside the 31-bit address space to be appropriately relocated by the loader. If you specify -taso and also specify text and data segment addresses with -T and -D, those addresses override the -taso default addresses. The -taso flag is useful for porting 32-bit programs to Digital UNIX. -- Michael Brodeur I speak form myself and not for DIGITAL.