[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Tinycc-devel] [ELF][Relocatable] undefined global symbols will confuse
From: |
Sylvain BERTRAND |
Subject: |
[Tinycc-devel] [ELF][Relocatable] undefined global symbols will confuse binutils bfd if not set to STT_NOTYPE |
Date: |
Tue, 24 Oct 2023 20:04:23 +0000 |
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] [ELF][Relocatable] undefined global symbols will confuse binutils bfd if not set to STT_NOTYPE,
Sylvain BERTRAND <=