Hi,

This is related to my previous posts.

After further investigation, binutils bfd (tested with 2.41) will be
confused if ELF relocatable object files contain undefined (SHN_UNDEF)
global (STB_GLOBAL) symbols which types are not to STT_NOTYPE.

With the glibc I used (2.38), memcpy uses weak indirect function (IFUNC), that
combined with ELF relocatable objects from tcc, it will generate a corrupted
executable.

cproc/qbe compiler and gcc are generating proper ELF relocatable object files.

Pushing a patch on mob.

regards,

--
Sylvain


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

Reply via email to