diff options
| author | Ramsay Jones <ramsay@ramsay1.demon.co.uk> | 2012-02-12 22:27:26 +0000 |
|---|---|---|
| committer | Ramsay Jones <ramsay@ramsay1.demon.co.uk> | 2012-02-29 16:38:24 +0000 |
| commit | e343b1dfd47eb6514c836e2329ad0171a7226c4b (patch) | |
| tree | a6fbac12a0afb1a10ef26b804ffb5877789bb850 | |
| parent | d7a7c3769d0a1dcb8400258cd8adf78a8566de61 (diff) | |
| download | tinycc-e343b1dfd47eb6514c836e2329ad0171a7226c4b.tar.gz tinycc-e343b1dfd47eb6514c836e2329ad0171a7226c4b.tar.bz2 | |
Add __REDIRECT needed for Large File Support API on linux
Since commit 9b09fc3 ("Add support of asm label for functions",
05-09-2010) tcc has had the capability to rename functions at the
assembly level. This capability was subsequently used by commit
2596273 ("Add support for __REDIRECT_NTH needed with eglibc",
11-09-2010) to redirect long double functions on platforms which
did not support long double.
Here we add the companion macro __REDIRECT which is used (along
with __REDIRECT_NTH) in the glibc headers on Linux to support the
Large File API (when _FILE_OFFSET_BITS is set to 64).
Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
| -rw-r--r-- | libtcc.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -980,6 +980,7 @@ LIBTCCAPI TCCState *tcc_new(void) #endif /* glibc defines */ + tcc_define_symbol(s, "__REDIRECT(name, proto, alias)", "name proto __asm__ (#alias)"); tcc_define_symbol(s, "__REDIRECT_NTH(name, proto, alias)", "name proto __asm__ (#alias) __THROW"); #ifndef TCC_TARGET_PE |
