tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] Small bug: Uncalled null function pointer literal mak


From: Michael Matz
Subject: Re: [Tinycc-devel] Small bug: Uncalled null function pointer literal makes code unlinkable
Date: Mon, 2 Jul 2018 01:59:09 +0200 (CEST)
User-agent: Alpine 2.20 (LSU 67 2015-01-07)

Hi,

On Tue, 26 Jun 2018, Petr Skočík wrote:

Hi. I came across this little bug. It's not a showstopper for me but I
thought I'd report it in case somebody knows a quick fix.

example:c.c:
      void y(void);
#define x ((void(*)(void))0)
void call_x() { x?x():y(); }

compiling and attempted linking with

tcc -fPIC c.c -c && tcc -shared -o so.so c.o


on x86_64 (untested elsewhere) gives
      c.o: error: Invalid relocation entry [ 6] '.rela.text' @
      0000000c

Thanks for the report, fixed in mob.


Ciao,
Michael.

reply via email to

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