Re: [Tinycc-devel] Support for hidden symbols?

2014-04-17 Thread Austin English
On Thu, Apr 17, 2014 at 8:17 AM, Michael Matz  wrote:

> Hi,
>
> On Sun, 13 Apr 2014, Austin English wrote:
>
> > I expected that wine wouldn't immediately work, I'm doing it for the
> > curiosity factor.
>
> Okay :)
>
> > The next problem is:
> > make[1]: Entering directory `/home/austin/src/wine-tcc/dlls/acledit'
> > /home/austin/tcc/bin/i386-linux-gnu-tcc -m32 -c -I. -I. -I../../include
> > -I../../include  -D__WINESRC__  -D_REENTRANT -fPIC   -g  -o main.o main.c
> > ../../tools/winegcc/winegcc -m32 -B../../tools/winebuild --sysroot=../..
> > -shared ./acledit.spec main.o   -o acledit.dll.so
> > ../../libs/port/libwine_port.a
> > acledit.UgAqPb.s:14: error: unknown assembler directive
> > '.L__wine_spec_rva_base'
>
> Yep, tccasm doesn't currently accept the AT&T syntax of local labels.
> Well, I could add that as well, but the question will be where to stop?
> wine emits assembler code for an AT&T (e.g. the GNU) assembler, and tccasm
> is not such one.  There will be many more things missing.  All the .cfi
> directives, section markers, the special syntax for marking operands with
> certain relocations.  It would be easier if you would force wine to use
> the GNU assembler at least for assembler input.  The C sources can then
> still be compiled with TCC (and presumably that's where your couriosity
> lies).
>

Yes, precisely. clang has -no-integrated-as for this sort of case. I don't
see such an option with tcc, and setting AS doesn't work for wine's build
system.

-- 
-Austin
___
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel


Re: [Tinycc-devel] Support for hidden symbols?

2014-04-17 Thread Michael Matz
Hi,

On Sun, 13 Apr 2014, Austin English wrote:

> I expected that wine wouldn't immediately work, I'm doing it for the
> curiosity factor.

Okay :)

> The next problem is:
> make[1]: Entering directory `/home/austin/src/wine-tcc/dlls/acledit'
> /home/austin/tcc/bin/i386-linux-gnu-tcc -m32 -c -I. -I. -I../../include
> -I../../include  -D__WINESRC__  -D_REENTRANT -fPIC   -g  -o main.o main.c
> ../../tools/winegcc/winegcc -m32 -B../../tools/winebuild --sysroot=../..
> -shared ./acledit.spec main.o   -o acledit.dll.so
> ../../libs/port/libwine_port.a
> acledit.UgAqPb.s:14: error: unknown assembler directive
> '.L__wine_spec_rva_base'

Yep, tccasm doesn't currently accept the AT&T syntax of local labels.  
Well, I could add that as well, but the question will be where to stop?  
wine emits assembler code for an AT&T (e.g. the GNU) assembler, and tccasm 
is not such one.  There will be many more things missing.  All the .cfi 
directives, section markers, the special syntax for marking operands with 
certain relocations.  It would be easier if you would force wine to use 
the GNU assembler at least for assembler input.  The C sources can then 
still be compiled with TCC (and presumably that's where your couriosity 
lies).


Ciao,
Michael.

___
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel