This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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: [patches] Re: Fix compilation to native x86-64 compiler


Richard Henderson <rth@redhat.com> writes:

> On Wed, Dec 05, 2001 at 05:02:10PM +0100, Jan Hubicka wrote:
>> > So, what should be done with Bo's patch?
>> I guess better is the patch I sent to list to kill -ax entirely.
>
> For the machine state part, yes.

Ok, then let's wait until it gets reviewed.

> I'll leave the ld.so hackery to someone who's keeping track of
> the x86-64 glibc work.  It seems wrong to me -- either glibc is
> going to change the install location or it isn't.  And if it is,
> better sooner than later.

As the one doing the x86-64 glibc work and working on the ABI: glibc
is expected to stay as it is.  The patch is fine, just the comment is
wrong:

> --- linux64.h	2001/10/16 22:04:20	1.2
> +++ linux64.h	2001/12/03 13:14:08
> @@ -36,13 +36,17 @@
>     options at link-time.
>  
>     When the -shared link option is used a final link is not being
> -   done.  */
> +   done.
>  
> +   TODO: The x86-64 ABI states the dynamic linker to be placed in
> +   /lib, but currently glibc installs it in /lib64. Change this when
> +   glibc gets corrected.  */
> +

This should be removed completly since it's wrong, ignore the ABI,
I'll change it soon.

>  #undef	LINK_SPEC
>  #define LINK_SPEC "%{!m32:-m elf_x86_64} %{m32:-m elf_i386} 
> %{shared:-shared} \
>    %{!shared: \
>      %{!static: \
>        %{rdynamic:-export-dynamic} \
> -      %{!dynamic-linker:-dynamic-linker /lib/ld64.so.1}} \
> +      %{!dynamic-linker:-dynamic-linker /lib64/ld-linux-x86-64.so.2}} \
>        %{static:-static}}"

And this part is fine!

Andreas
-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj


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