mirror of
git://repo.or.cz/tinycc.git
synced 2026-06-17 23:54:16 +08:00
Some checks failed
build and test / test-x86_64-linux (push) Has been cancelled
build and test / test-x86_64-osx (push) Has been cancelled
build and test / test-aarch64-osx (push) Has been cancelled
build and test / test-x86_64-win32 (push) Has been cancelled
build and test / test-i386-win32 (push) Has been cancelled
build and test / test-armv7-linux (push) Has been cancelled
build and test / test-aarch64-linux (push) Has been cancelled
build and test / test-riscv64-linux (push) Has been cancelled
workflow: - revert 'pinact for security' for readability from831c3fa184tccpp.c: - remove code that allows tcc to parse numbers incorrectly (*) from829c848520tccgen.c: - Revert "Relaxed the 'incompatible pointer type' warning a bit" (*) fromd9ec17d334. tccrun.c: - remove support for -nostdlib -run for simplicity, we require "main" with tcc -run always tccpp.c: - Revert "Free all preprocessor memmory in case of error." fromc96f0cad61Remove TinyAlloc->limit instead. Thus it can do also bigger allocs. Big TokenStrings (like 200kb+ when compiling tcc) may come from inline functions or from large initializers. Makefile/configure: - use --config-pie for configuring tcc output only - use -fPIC with clang-x86_64 to avoid 32-bit relocs libtcc.c: - fix "tcc file.c -run" i.e. -run as last argument i386-gen.c: - PIC refactor (*) sorry, but code in tcc should have a minimum of generic relevance
40 lines
1.0 KiB
ArmAsm
40 lines
1.0 KiB
ArmAsm
/* ---------------------------------------------- */
|
|
/* get_pc_thunk.S */
|
|
|
|
#ifdef __leading_underscore
|
|
# define _(s) _##s
|
|
#else
|
|
# define _(s) s
|
|
#endif
|
|
|
|
/* ---------------------------------------------- */
|
|
.text
|
|
|
|
.globl _(__x86.get_pc_thunk.ax)
|
|
.hidden _(__x86.get_pc_thunk.ax)
|
|
_(__x86.get_pc_thunk.ax):
|
|
mov (%esp),%eax
|
|
ret
|
|
.size _(__x86.get_pc_thunk.ax), .-_(__x86.get_pc_thunk.ax)
|
|
|
|
.globl _(__x86.get_pc_thunk.bx)
|
|
.hidden _(__x86.get_pc_thunk.bx)
|
|
_(__x86.get_pc_thunk.bx):
|
|
mov (%esp),%ebx
|
|
ret
|
|
.size _(__x86.get_pc_thunk.bx), .-_(__x86.get_pc_thunk.bx)
|
|
|
|
.globl _(__x86.get_pc_thunk.cx)
|
|
.hidden _(__x86.get_pc_thunk.cx)
|
|
_(__x86.get_pc_thunk.cx):
|
|
mov (%esp),%ecx
|
|
ret
|
|
.size _(__x86.get_pc_thunk.cx), .-_(__x86.get_pc_thunk.cx)
|
|
|
|
.globl _(__x86.get_pc_thunk.dx)
|
|
.hidden _(__x86.get_pc_thunk.dx)
|
|
_(__x86.get_pc_thunk.dx):
|
|
mov (%esp),%edx
|
|
ret
|
|
.size _(__x86.get_pc_thunk.dx), .-_(__x86.get_pc_thunk.dx)
|