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.
---
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 eli...@orange.fr:
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=orange...@nongnu.org] On
Behalf Of C.J. Wagenius
Sent: Saturday, June 15, 2019 22:26
To: tinycc-devel@nongnu.org
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
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel
_______________________________________________
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel
_______________________________________________
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel
_______________________________________________
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel