On Saturday, December 9, 2023 at 09:02:05 AM PST, tinycc-devel-request@nongnu.org <tinycc-devel-request@nongnu.org> wrote:
Send Tinycc-devel mailing list submissions to
To subscribe or unsubscribe via the World Wide Web, visit
or, via email, send a message with subject or body 'help' to
You can reach the person managing the list at
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Tinycc-devel digest..."
Today's Topics:
1. Re: tcc: error: unknown relocation type for got: 285 (vw)
2. Preprocessing issue? (Patrick Pelissier)
3. Re: tcc: error: unknown relocation type for got: 285 (Ziyao)
----------------------------------------------------------------------
Message: 1
Date: Fri, 8 Dec 2023 18:40:19 +0000 (UTC)
Subject: Re: [Tinycc-devel] tcc: error: unknown relocation type for
got: 285
Content-Type: text/plain; charset="utf-8"
Hi Ziyao,
When I do the command uname -a, it does report back as aarch64:> uname -aLinux oogway 5.15.76-v8+ #1597 SMP PREEMPT Fri Nov 4 12:16:41 GMT 2022 aarch64 GNU/Linux
When I installed libtcc, I just used the command:sudo apt install libtcc-devSo, I am not sure how to find if it is ARM32 or AArch64? I assume everything must be AArch64?
I have 2 raspberry pi 4's, and it is the same "relocation 285" error on both.
I can add that tcc itself works fine on the raspberry pi 4 from the command line.
On my amd desktop, the libtcc_test.c file compiles and runs fine.
I didn't compile anything myself, all tcc, libtcc-dev where installed via the sudo apt install. My version of debian is 11 (bullseye).
I am really interested in the feature of dynamic compilation as in the libtcc_test.c example file.
Thanks!Vinny
On 2023-12-08 07:48, Henri Carrie via Tinycc-devel wrote:
> But when i tried to get it to work on my raspberry pi 4, running debian
> 11, I got this error and I don’t know how to get around it:
> tcc: error: Unknown relocation type for got: 285
Are you running an AArch64 variant of Debian or an ARMv7 one?
Relocation type 285 stands for R_AARCH64_LDST32_ABS_LO12_NC, which is
handled
in arm64-link.c. Are you using libtcc compiled for ARM32 instead of
AArch64?
> Any suggestions on how to fix it?
>
> thanks!
> Vinny
>
> _______________________________________________
> Tinycc-devel mailing list
--
Ziyao
------------------------------
Subject: Digest Footer
_______________________________________________
Tinycc-devel mailing list
------------------------------
End of Tinycc-devel Digest, Vol 247, Issue 2
********************************************
-------------- next part --------------
An HTML attachment was scrubbed...
------------------------------
Message: 2
Date: Fri, 8 Dec 2023 20:47:52 +0100
Subject: [Tinycc-devel] Preprocessing issue?
Message-ID:
<CAPTYtHqzZ4KizFQyXJ86et1KM2nz0CTDxHgm1WuB4e=paoyxig@mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"
Hi,
I think I have found an issue in TCC preprocessing.
The program below produces the following output when runs with tcc -E:
, USER
, USER_COMP_CORE
whereas I would have expected 1 more line:
, USER
, USER_COMP_CORE
, USER_COMP_CORE
(Tested with GIT 81a32ec305ee871d8129978bf3d57bc108bec46b)
The program is a little bit long so it is available here:
--
Regards
Patrick
------------------------------
Message: 3
Date: Sat, 09 Dec 2023 16:43:59 +0800
Subject: Re: [Tinycc-devel] tcc: error: unknown relocation type for
got: 285
Content-Type: text/plain; charset=US-ASCII; format=flowed
On 2023-12-09 02:40, vw via Tinycc-devel wrote:
> When I installed libtcc, I just used the command:
> sudo apt install libtcc-dev
> So, I am not sure how to find if it is ARM32 or AArch64? I assume
> everything must be AArch64?
Do NOT install TinyCC from your package manager, it should be a quite
old version of TinyCC.
> I didn't compile anything myself, all tcc, libtcc-dev where installed
> via the sudo apt install. My version of debian is 11 (bullseye).
Build TinyCC from source should be the solution.
> I am really interested in the feature of dynamic compilation as in the
> libtcc_test.c example file.
>
> Thanks!
> Vinny
--
Ziyao
------------------------------
Subject: Digest Footer
_______________________________________________
Tinycc-devel mailing list
------------------------------
End of Tinycc-devel Digest, Vol 247, Issue 3
********************************************