tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] Ported tcc to Solaris/Illumos x86


From: grischka
Subject: Re: [Tinycc-devel] Ported tcc to Solaris/Illumos x86
Date: Sat, 15 Jul 2023 12:31:52 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0

On 14.07.23 15:30, Brian Callahan wrote:
* __start_crt_compiler: referenced symbol not found
   Seems you'd need to provide this function, for example in libtcc1.a.
   Google has some info about it.


This symbol is provided in the Solaris C runtime startup files, and it
is linked into the binary. Which is why I think the relocation error is
the real problem, and this is one is a red herring.

Why start "thinking" when it takes one minute to lookup the docs
https://docs.oracle.com/cd/E88353_01/html/E37853/u--start-crt-compiler-7.html
and another minute to try with a hello.c that includes that function.

* relocation R_AMD64_COPY offset invalid: _DYNAMIC: offset=0xa00a08 lies
   outside memory image;

   Don't know.  COPY relocs normally are generated only by the tcc linker
   itself for bss symbols.  Is "_DYNAMIC" the symbol name?  Does it have
   a "symbol size" (esym->st_size) ?  Try objdump -R,  See also
tccelf.c:1941


Started on this but nothing conclusive yet.

According to
https://docs.oracle.com/cd/E26502_01/html/E26507/chapter6-42444.html
"_DYNAMIC" seems to be a section symbol that the linker should provide.
Maybe as in tccelf.c:tcc_add_linker_symbols()

-- gr


~Brian




reply via email to

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