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


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

Reply via email to