mirror of
git://repo.or.cz/tinycc.git
synced 2026-06-19 11:24:19 +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
Some targets (netbsd) require that code is compiled with -fPIE. i386-gen.c: Lot of changes to load/store code i386-link.c: Set PCRELATIVE_DLLPLT depending on configuration tccelf.c: Change some relocations and add get_pc_thunk.o Makefile lib/Makefile lib/get_pc_thunk.S: Add new file get_pc_thunk.o
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)
|