tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] tcc crashes at the dlltest in Fedora 30


From: C.J. Wagenius
Subject: Re: [Tinycc-devel] tcc crashes at the dlltest in Fedora 30
Date: Mon, 17 Jun 2019 05:02:54 +0200 (CEST)



16 juni 2019 23:00 av address@hidden:

> Hi,
>
> On Sun, 16 Jun 2019, C.J. Wagenius wrote:
>
>> Thanks for info. Sorry for not checking the history of this.
>>
>> There seems to be a section in crti.o that messes things up. Its name is 
>> ".rela.gnu.build.attributes" and I can't see that anything like it loads 
>> from the crti.o of CentOS 7 (gcc version 4.8.5 20150623, glibc 2.17). I have 
>> no clue why it doesn't get its sh_info value set (or if that's the root of 
>> the problem at all); which seems to be the case for other SHT_RELX sections. 
>> Neither do I know the importance of this particular section. I don't know 
>> anything about this crt-stuff to be honest. First time I'm looking in to it.
>>
>> https://lists.nongnu.org/archive/html/tinycc-devel/2019-03/msg00018.html 
>> <https://lists.nongnu.org/archive/html/tinycc-devel/2019-03/msg00018.html>
>> This doesn't work. It ends up in some invalid section type errors.
>>
>
> Hmm, I seem to have dropped the ball on this one, sorry for that.  Can you 
> please try current mob.  I've committed a nicer fix than fef838db which 
> should take care of the problem (which is, that while in some parts of TCC 
> reloc sections to ignored sections are correctly ignored, in other parts 
> (when creating shared libraries) they weren't ignored completely).
>
> Christian J.: you should also test your Fedora 29 setup, the idea is, that 
> current mob is at least as good as (and actually better than) after commit 
> fef838db.
>
>
> Ciao,
> Michael.
>
It works just fine. Good job and thanks, man.

/cjw

>> ---
>> make[2]: Entering directory '/home/cjw/Temp/tinycc/tests'
>> ------------ hello-exe ------------
>> ../tcc -B.. -I../include -I.. -I.. ../examples/ex1.c -o hello && ./hello || 
>> (set -x; ../tcc -vv; ldd ../tcc; exit 1)
>> /usr/lib64/crti.o: error: invalid section type
>> ---
>>
>> https://lists.nongnu.org/archive/html/tinycc-devel/2019-03/msg00017.html 
>> <https://lists.nongnu.org/archive/html/tinycc-devel/2019-03/msg00017.html>
>> This is the conclusion I came up with too. It seems to work but I don't know 
>> all side effects of it.
>>
>>
>> I hope this information can help in any way.
>>
>> /cjw
>>
>> 16 juni 2019 06:55 av address@hidden:
>>
>>> Yes this known,
>>> See thread started by 
>>> "https://lists.nongnu.org/archive/html/tinycc-devel/2019-03/msg00000.html";
>>>
>>> And my investigations with (possible?) fix
>>> https://lists.nongnu.org/archive/html/tinycc-devel/2019-03/msg00017.html
>>> https://lists.nongnu.org/archive/html/tinycc-devel/2019-03/msg00018.html
>>>
>>> As I'm far to be an ELF expert, I'm waiting for someone to understand what 
>>> happens ... and to do the right fix.
>>>
>>> C.
>>>
>>> -----Original Message-----
>>> From: Tinycc-devel [mailto:tinycc-devel-bounces+eligis=address@hidden] On 
>>> Behalf Of C.J. Wagenius
>>> Sent: Saturday, June 15, 2019 22:26
>>> To: address@hidden
>>> Subject: [Tinycc-devel] tcc crashes at the dlltest in Fedora 30
>>>
>>> gcc version 9.1.1 20190503, glibc-2.29
>>>
>>> ../tcc -B.. -I../include -I.. -I.. -DCONFIG_LDDIR="\"lib64\"" 
>>> -DTCC_TARGET_X86_64 -DHAVE_SELINUX -DLIBTCC_AS_DLL ../libtcc.c -lm -ldl 
>>> -shared -o libtcc2.so
>>> make[2]: *** [Makefile:134: dlltest] Segmentation fault (core dumped)
>>>
>>> Regards
>>>
>>> /cjw
>>>
>>> _______________________________________________
>>> Tinycc-devel mailing list
>>> address@hidden
>>> https://lists.nongnu.org/mailman/listinfo/tinycc-devel
>>>
>>>
>>> _______________________________________________
>>> Tinycc-devel mailing list
>>> address@hidden
>>> https://lists.nongnu.org/mailman/listinfo/tinycc-devel
>>>
>>
>>
>> _______________________________________________
>> Tinycc-devel mailing list
>> address@hidden
>> https://lists.nongnu.org/mailman/listinfo/tinycc-devel
>>
>
> _______________________________________________
> Tinycc-devel mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/tinycc-devel
>




reply via email to

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