tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] shared libraries on x86-64: "unexpected reloc type 0x


From: Olaf Dietrich
Subject: Re: [Tinycc-devel] shared libraries on x86-64: "unexpected reloc type 0x09"
Date: Mon, 23 Mar 2009 10:20:08 +0100
User-agent: Mutt/1.5.18 (2008-05-17)

shinichiro.h (2009-03-21T12:29:58+0900):
> 
> > when testing the current (?) git snapshot from 2008-12-02
> > (snapshot downloaded from http://repo.or.cz/w/tinycc.git)
> > I found a problem with shared libraries that should be
> > loaded by Tcl/Tk as extension:
> 
> I didn't support shared libraries for x86-64 and generally it should
> not work :) I guess your simple test was so simple that TCC
> accidentally generates valid code (maybe a function which just returns
> integer value would work).

I think that's quite exactly what I tried ...


> Recently I'm working on shared libraries on x86-64 and it seems that
> it starts working. You can try it using mob branch, but please note
> that there should be some bugs and it may crash (also, x86-64 support
> itself is unstable - I didn't test it well).

Excellent! I've just tested it with the mob version (last commit
2009-03-21) and it worked!

For some reason I see for every linked object file the following
(warning/error) message:

  new_bind=1 new_shndx=1 new_vis=0 old_bind=1 old_shndx=1 old_vis=0
  ./obj/file1.o: '__va_list_malloc' defined twice
  new_bind=1 new_shndx=1 new_vis=0 old_bind=1 old_shndx=1 old_vis=0
  ./obj/file1.o: '__va_list_free' defined twice

but the resulting library seems to be (more or less - it
certainly needs more testing) okay!


Thanks for your work on the x86-64 target!


Olaf




reply via email to

[Prev in Thread] Current Thread [Next in Thread]