From 986f9067103e41296898a7c0e89f5ed84420fb5b Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Tue, 18 Feb 2014 16:42:36 -0800 Subject: [PATCH] Fix build by avoiding the _C_LABEL macro. Change-Id: Ide367c2b65071388bd95fbc81a4ed6ae94aec4e4 --- libc/arch-arm/syscalls/fstat64.S | 4 ++-- libc/arch-arm/syscalls/fstatat64.S | 4 ++-- libc/arch-arm64/syscalls/fallocate.S | 4 ++-- libc/arch-arm64/syscalls/fstat64.S | 4 ++-- libc/arch-arm64/syscalls/fstatat64.S | 4 ++-- libc/arch-arm64/syscalls/fstatfs64.S | 4 ++-- libc/arch-arm64/syscalls/ftruncate.S | 4 ++-- libc/arch-arm64/syscalls/getrlimit.S | 4 ++-- libc/arch-arm64/syscalls/lseek.S | 4 ++-- libc/arch-arm64/syscalls/mmap.S | 4 ++-- libc/arch-arm64/syscalls/pread64.S | 4 ++-- libc/arch-arm64/syscalls/prlimit64.S | 4 ++-- libc/arch-arm64/syscalls/pwrite64.S | 4 ++-- libc/arch-arm64/syscalls/sendfile.S | 4 ++-- libc/arch-arm64/syscalls/setrlimit.S | 4 ++-- libc/arch-arm64/syscalls/statfs64.S | 4 ++-- libc/arch-arm64/syscalls/truncate.S | 4 ++-- libc/arch-mips/syscalls/fstat64.S | 4 ++-- libc/arch-mips/syscalls/fstatat64.S | 4 ++-- libc/arch-mips64/syscalls/fallocate.S | 4 ++-- libc/arch-mips64/syscalls/fstat64.S | 4 ++-- libc/arch-mips64/syscalls/fstatat64.S | 4 ++-- libc/arch-mips64/syscalls/fstatfs64.S | 4 ++-- libc/arch-mips64/syscalls/ftruncate.S | 4 ++-- libc/arch-mips64/syscalls/getrlimit.S | 4 ++-- libc/arch-mips64/syscalls/lseek.S | 4 ++-- libc/arch-mips64/syscalls/mmap.S | 4 ++-- libc/arch-mips64/syscalls/pread64.S | 4 ++-- libc/arch-mips64/syscalls/prlimit64.S | 4 ++-- libc/arch-mips64/syscalls/pwrite64.S | 4 ++-- libc/arch-mips64/syscalls/sendfile.S | 4 ++-- libc/arch-mips64/syscalls/setrlimit.S | 4 ++-- libc/arch-mips64/syscalls/statfs64.S | 4 ++-- libc/arch-mips64/syscalls/truncate.S | 4 ++-- libc/arch-x86/syscalls/fstat64.S | 4 ++-- libc/arch-x86/syscalls/fstatat64.S | 4 ++-- libc/arch-x86_64/syscalls/fallocate.S | 4 ++-- libc/arch-x86_64/syscalls/fstat64.S | 4 ++-- libc/arch-x86_64/syscalls/fstatat64.S | 4 ++-- libc/arch-x86_64/syscalls/fstatfs64.S | 4 ++-- libc/arch-x86_64/syscalls/ftruncate.S | 4 ++-- libc/arch-x86_64/syscalls/getrlimit.S | 4 ++-- libc/arch-x86_64/syscalls/lseek.S | 4 ++-- libc/arch-x86_64/syscalls/mmap.S | 4 ++-- libc/arch-x86_64/syscalls/pread64.S | 4 ++-- libc/arch-x86_64/syscalls/prlimit64.S | 4 ++-- libc/arch-x86_64/syscalls/pwrite64.S | 4 ++-- libc/arch-x86_64/syscalls/sendfile.S | 4 ++-- libc/arch-x86_64/syscalls/setrlimit.S | 4 ++-- libc/arch-x86_64/syscalls/statfs64.S | 4 ++-- libc/arch-x86_64/syscalls/truncate.S | 4 ++-- libc/tools/gensyscalls.py | 4 ++-- 52 files changed, 104 insertions(+), 104 deletions(-) diff --git a/libc/arch-arm/syscalls/fstat64.S b/libc/arch-arm/syscalls/fstat64.S index 4eceb8f5d..7517a6587 100644 --- a/libc/arch-arm/syscalls/fstat64.S +++ b/libc/arch-arm/syscalls/fstat64.S @@ -13,5 +13,5 @@ ENTRY(fstat64) b __set_errno END(fstat64) - .globl _C_LABEL(fstat) - .equ _C_LABEL(fstat), _C_LABEL(fstat64) + .globl fstat + .equ fstat, fstat64 diff --git a/libc/arch-arm/syscalls/fstatat64.S b/libc/arch-arm/syscalls/fstatat64.S index e919efef9..752ee2f74 100644 --- a/libc/arch-arm/syscalls/fstatat64.S +++ b/libc/arch-arm/syscalls/fstatat64.S @@ -13,5 +13,5 @@ ENTRY(fstatat64) b __set_errno END(fstatat64) - .globl _C_LABEL(fstatat) - .equ _C_LABEL(fstatat), _C_LABEL(fstatat64) + .globl fstatat + .equ fstatat, fstatat64 diff --git a/libc/arch-arm64/syscalls/fallocate.S b/libc/arch-arm64/syscalls/fallocate.S index e79b96a69..15e727d02 100644 --- a/libc/arch-arm64/syscalls/fallocate.S +++ b/libc/arch-arm64/syscalls/fallocate.S @@ -20,5 +20,5 @@ ENTRY(fallocate) ret END(fallocate) - .globl _C_LABEL(fallocate64) - .equ _C_LABEL(fallocate64), _C_LABEL(fallocate) + .globl fallocate64 + .equ fallocate64, fallocate diff --git a/libc/arch-arm64/syscalls/fstat64.S b/libc/arch-arm64/syscalls/fstat64.S index 56a1b35cc..fdff681cf 100644 --- a/libc/arch-arm64/syscalls/fstat64.S +++ b/libc/arch-arm64/syscalls/fstat64.S @@ -20,5 +20,5 @@ ENTRY(fstat64) ret END(fstat64) - .globl _C_LABEL(fstat) - .equ _C_LABEL(fstat), _C_LABEL(fstat64) + .globl fstat + .equ fstat, fstat64 diff --git a/libc/arch-arm64/syscalls/fstatat64.S b/libc/arch-arm64/syscalls/fstatat64.S index 97e0634a5..0f3ef4d62 100644 --- a/libc/arch-arm64/syscalls/fstatat64.S +++ b/libc/arch-arm64/syscalls/fstatat64.S @@ -20,5 +20,5 @@ ENTRY(fstatat64) ret END(fstatat64) - .globl _C_LABEL(fstatat) - .equ _C_LABEL(fstatat), _C_LABEL(fstatat64) + .globl fstatat + .equ fstatat, fstatat64 diff --git a/libc/arch-arm64/syscalls/fstatfs64.S b/libc/arch-arm64/syscalls/fstatfs64.S index 2c0506d72..6318d5656 100644 --- a/libc/arch-arm64/syscalls/fstatfs64.S +++ b/libc/arch-arm64/syscalls/fstatfs64.S @@ -20,5 +20,5 @@ ENTRY(fstatfs64) ret END(fstatfs64) - .globl _C_LABEL(fstatfs) - .equ _C_LABEL(fstatfs), _C_LABEL(fstatfs64) + .globl fstatfs + .equ fstatfs, fstatfs64 diff --git a/libc/arch-arm64/syscalls/ftruncate.S b/libc/arch-arm64/syscalls/ftruncate.S index 7ed80b936..c8f5b6b83 100644 --- a/libc/arch-arm64/syscalls/ftruncate.S +++ b/libc/arch-arm64/syscalls/ftruncate.S @@ -20,5 +20,5 @@ ENTRY(ftruncate) ret END(ftruncate) - .globl _C_LABEL(ftruncate64) - .equ _C_LABEL(ftruncate64), _C_LABEL(ftruncate) + .globl ftruncate64 + .equ ftruncate64, ftruncate diff --git a/libc/arch-arm64/syscalls/getrlimit.S b/libc/arch-arm64/syscalls/getrlimit.S index 21b471e10..4fb5f7ca8 100644 --- a/libc/arch-arm64/syscalls/getrlimit.S +++ b/libc/arch-arm64/syscalls/getrlimit.S @@ -20,5 +20,5 @@ ENTRY(getrlimit) ret END(getrlimit) - .globl _C_LABEL(getrlimit64) - .equ _C_LABEL(getrlimit64), _C_LABEL(getrlimit) + .globl getrlimit64 + .equ getrlimit64, getrlimit diff --git a/libc/arch-arm64/syscalls/lseek.S b/libc/arch-arm64/syscalls/lseek.S index 867bb715f..0c042031c 100644 --- a/libc/arch-arm64/syscalls/lseek.S +++ b/libc/arch-arm64/syscalls/lseek.S @@ -20,5 +20,5 @@ ENTRY(lseek) ret END(lseek) - .globl _C_LABEL(lseek64) - .equ _C_LABEL(lseek64), _C_LABEL(lseek) + .globl lseek64 + .equ lseek64, lseek diff --git a/libc/arch-arm64/syscalls/mmap.S b/libc/arch-arm64/syscalls/mmap.S index a2d181a4a..4d491855b 100644 --- a/libc/arch-arm64/syscalls/mmap.S +++ b/libc/arch-arm64/syscalls/mmap.S @@ -20,5 +20,5 @@ ENTRY(mmap) ret END(mmap) - .globl _C_LABEL(mmap64) - .equ _C_LABEL(mmap64), _C_LABEL(mmap) + .globl mmap64 + .equ mmap64, mmap diff --git a/libc/arch-arm64/syscalls/pread64.S b/libc/arch-arm64/syscalls/pread64.S index 0d098f17b..b33394634 100644 --- a/libc/arch-arm64/syscalls/pread64.S +++ b/libc/arch-arm64/syscalls/pread64.S @@ -20,5 +20,5 @@ ENTRY(pread64) ret END(pread64) - .globl _C_LABEL(pread) - .equ _C_LABEL(pread), _C_LABEL(pread64) + .globl pread + .equ pread, pread64 diff --git a/libc/arch-arm64/syscalls/prlimit64.S b/libc/arch-arm64/syscalls/prlimit64.S index 439e35522..c8820ef5f 100644 --- a/libc/arch-arm64/syscalls/prlimit64.S +++ b/libc/arch-arm64/syscalls/prlimit64.S @@ -20,5 +20,5 @@ ENTRY(prlimit64) ret END(prlimit64) - .globl _C_LABEL(prlimit) - .equ _C_LABEL(prlimit), _C_LABEL(prlimit64) + .globl prlimit + .equ prlimit, prlimit64 diff --git a/libc/arch-arm64/syscalls/pwrite64.S b/libc/arch-arm64/syscalls/pwrite64.S index a10f76f66..1ae312c6b 100644 --- a/libc/arch-arm64/syscalls/pwrite64.S +++ b/libc/arch-arm64/syscalls/pwrite64.S @@ -20,5 +20,5 @@ ENTRY(pwrite64) ret END(pwrite64) - .globl _C_LABEL(pwrite) - .equ _C_LABEL(pwrite), _C_LABEL(pwrite64) + .globl pwrite + .equ pwrite, pwrite64 diff --git a/libc/arch-arm64/syscalls/sendfile.S b/libc/arch-arm64/syscalls/sendfile.S index e54029662..7bf415d9f 100644 --- a/libc/arch-arm64/syscalls/sendfile.S +++ b/libc/arch-arm64/syscalls/sendfile.S @@ -20,5 +20,5 @@ ENTRY(sendfile) ret END(sendfile) - .globl _C_LABEL(sendfile64) - .equ _C_LABEL(sendfile64), _C_LABEL(sendfile) + .globl sendfile64 + .equ sendfile64, sendfile diff --git a/libc/arch-arm64/syscalls/setrlimit.S b/libc/arch-arm64/syscalls/setrlimit.S index e72380632..4bc412ad6 100644 --- a/libc/arch-arm64/syscalls/setrlimit.S +++ b/libc/arch-arm64/syscalls/setrlimit.S @@ -20,5 +20,5 @@ ENTRY(setrlimit) ret END(setrlimit) - .globl _C_LABEL(setrlimit64) - .equ _C_LABEL(setrlimit64), _C_LABEL(setrlimit) + .globl setrlimit64 + .equ setrlimit64, setrlimit diff --git a/libc/arch-arm64/syscalls/statfs64.S b/libc/arch-arm64/syscalls/statfs64.S index a449b3592..c03798011 100644 --- a/libc/arch-arm64/syscalls/statfs64.S +++ b/libc/arch-arm64/syscalls/statfs64.S @@ -20,5 +20,5 @@ ENTRY(statfs64) ret END(statfs64) - .globl _C_LABEL(statfs) - .equ _C_LABEL(statfs), _C_LABEL(statfs64) + .globl statfs + .equ statfs, statfs64 diff --git a/libc/arch-arm64/syscalls/truncate.S b/libc/arch-arm64/syscalls/truncate.S index f254c342b..7e3385b0e 100644 --- a/libc/arch-arm64/syscalls/truncate.S +++ b/libc/arch-arm64/syscalls/truncate.S @@ -20,5 +20,5 @@ ENTRY(truncate) ret END(truncate) - .globl _C_LABEL(truncate64) - .equ _C_LABEL(truncate64), _C_LABEL(truncate) + .globl truncate64 + .equ truncate64, truncate diff --git a/libc/arch-mips/syscalls/fstat64.S b/libc/arch-mips/syscalls/fstat64.S index de09df57e..904ce8603 100644 --- a/libc/arch-mips/syscalls/fstat64.S +++ b/libc/arch-mips/syscalls/fstat64.S @@ -22,5 +22,5 @@ fstat64: .set reorder .end fstat64 - .globl _C_LABEL(fstat) - .equ _C_LABEL(fstat), _C_LABEL(fstat64) + .globl fstat + .equ fstat, fstat64 diff --git a/libc/arch-mips/syscalls/fstatat64.S b/libc/arch-mips/syscalls/fstatat64.S index b1779227a..8c81a9fca 100644 --- a/libc/arch-mips/syscalls/fstatat64.S +++ b/libc/arch-mips/syscalls/fstatat64.S @@ -22,5 +22,5 @@ fstatat64: .set reorder .end fstatat64 - .globl _C_LABEL(fstatat) - .equ _C_LABEL(fstatat), _C_LABEL(fstatat64) + .globl fstatat + .equ fstatat, fstatat64 diff --git a/libc/arch-mips64/syscalls/fallocate.S b/libc/arch-mips64/syscalls/fallocate.S index dea8d2727..347ab1f59 100644 --- a/libc/arch-mips64/syscalls/fallocate.S +++ b/libc/arch-mips64/syscalls/fallocate.S @@ -30,5 +30,5 @@ fallocate: .set pop .end fallocate - .globl _C_LABEL(fallocate64) - .equ _C_LABEL(fallocate64), _C_LABEL(fallocate) + .globl fallocate64 + .equ fallocate64, fallocate diff --git a/libc/arch-mips64/syscalls/fstat64.S b/libc/arch-mips64/syscalls/fstat64.S index 413d03bab..aad3c21a0 100644 --- a/libc/arch-mips64/syscalls/fstat64.S +++ b/libc/arch-mips64/syscalls/fstat64.S @@ -30,5 +30,5 @@ fstat64: .set pop .end fstat64 - .globl _C_LABEL(fstat) - .equ _C_LABEL(fstat), _C_LABEL(fstat64) + .globl fstat + .equ fstat, fstat64 diff --git a/libc/arch-mips64/syscalls/fstatat64.S b/libc/arch-mips64/syscalls/fstatat64.S index df0090158..828439a3a 100644 --- a/libc/arch-mips64/syscalls/fstatat64.S +++ b/libc/arch-mips64/syscalls/fstatat64.S @@ -30,5 +30,5 @@ fstatat64: .set pop .end fstatat64 - .globl _C_LABEL(fstatat) - .equ _C_LABEL(fstatat), _C_LABEL(fstatat64) + .globl fstatat + .equ fstatat, fstatat64 diff --git a/libc/arch-mips64/syscalls/fstatfs64.S b/libc/arch-mips64/syscalls/fstatfs64.S index 2276299f2..09380b275 100644 --- a/libc/arch-mips64/syscalls/fstatfs64.S +++ b/libc/arch-mips64/syscalls/fstatfs64.S @@ -30,5 +30,5 @@ fstatfs64: .set pop .end fstatfs64 - .globl _C_LABEL(fstatfs) - .equ _C_LABEL(fstatfs), _C_LABEL(fstatfs64) + .globl fstatfs + .equ fstatfs, fstatfs64 diff --git a/libc/arch-mips64/syscalls/ftruncate.S b/libc/arch-mips64/syscalls/ftruncate.S index 507825d8c..3afe26a77 100644 --- a/libc/arch-mips64/syscalls/ftruncate.S +++ b/libc/arch-mips64/syscalls/ftruncate.S @@ -30,5 +30,5 @@ ftruncate: .set pop .end ftruncate - .globl _C_LABEL(ftruncate64) - .equ _C_LABEL(ftruncate64), _C_LABEL(ftruncate) + .globl ftruncate64 + .equ ftruncate64, ftruncate diff --git a/libc/arch-mips64/syscalls/getrlimit.S b/libc/arch-mips64/syscalls/getrlimit.S index b944426fc..d19eaeb07 100644 --- a/libc/arch-mips64/syscalls/getrlimit.S +++ b/libc/arch-mips64/syscalls/getrlimit.S @@ -30,5 +30,5 @@ getrlimit: .set pop .end getrlimit - .globl _C_LABEL(getrlimit64) - .equ _C_LABEL(getrlimit64), _C_LABEL(getrlimit) + .globl getrlimit64 + .equ getrlimit64, getrlimit diff --git a/libc/arch-mips64/syscalls/lseek.S b/libc/arch-mips64/syscalls/lseek.S index 79c8dec60..4385df5f6 100644 --- a/libc/arch-mips64/syscalls/lseek.S +++ b/libc/arch-mips64/syscalls/lseek.S @@ -30,5 +30,5 @@ lseek: .set pop .end lseek - .globl _C_LABEL(lseek64) - .equ _C_LABEL(lseek64), _C_LABEL(lseek) + .globl lseek64 + .equ lseek64, lseek diff --git a/libc/arch-mips64/syscalls/mmap.S b/libc/arch-mips64/syscalls/mmap.S index 1cde69154..682058ec1 100644 --- a/libc/arch-mips64/syscalls/mmap.S +++ b/libc/arch-mips64/syscalls/mmap.S @@ -30,5 +30,5 @@ mmap: .set pop .end mmap - .globl _C_LABEL(mmap64) - .equ _C_LABEL(mmap64), _C_LABEL(mmap) + .globl mmap64 + .equ mmap64, mmap diff --git a/libc/arch-mips64/syscalls/pread64.S b/libc/arch-mips64/syscalls/pread64.S index b75214734..a97a1d4a8 100644 --- a/libc/arch-mips64/syscalls/pread64.S +++ b/libc/arch-mips64/syscalls/pread64.S @@ -30,5 +30,5 @@ pread64: .set pop .end pread64 - .globl _C_LABEL(pread) - .equ _C_LABEL(pread), _C_LABEL(pread64) + .globl pread + .equ pread, pread64 diff --git a/libc/arch-mips64/syscalls/prlimit64.S b/libc/arch-mips64/syscalls/prlimit64.S index dea308fc9..e611bd097 100644 --- a/libc/arch-mips64/syscalls/prlimit64.S +++ b/libc/arch-mips64/syscalls/prlimit64.S @@ -30,5 +30,5 @@ prlimit64: .set pop .end prlimit64 - .globl _C_LABEL(prlimit) - .equ _C_LABEL(prlimit), _C_LABEL(prlimit64) + .globl prlimit + .equ prlimit, prlimit64 diff --git a/libc/arch-mips64/syscalls/pwrite64.S b/libc/arch-mips64/syscalls/pwrite64.S index b168ddf27..08af91beb 100644 --- a/libc/arch-mips64/syscalls/pwrite64.S +++ b/libc/arch-mips64/syscalls/pwrite64.S @@ -30,5 +30,5 @@ pwrite64: .set pop .end pwrite64 - .globl _C_LABEL(pwrite) - .equ _C_LABEL(pwrite), _C_LABEL(pwrite64) + .globl pwrite + .equ pwrite, pwrite64 diff --git a/libc/arch-mips64/syscalls/sendfile.S b/libc/arch-mips64/syscalls/sendfile.S index 18762395d..bce8d5845 100644 --- a/libc/arch-mips64/syscalls/sendfile.S +++ b/libc/arch-mips64/syscalls/sendfile.S @@ -30,5 +30,5 @@ sendfile: .set pop .end sendfile - .globl _C_LABEL(sendfile64) - .equ _C_LABEL(sendfile64), _C_LABEL(sendfile) + .globl sendfile64 + .equ sendfile64, sendfile diff --git a/libc/arch-mips64/syscalls/setrlimit.S b/libc/arch-mips64/syscalls/setrlimit.S index e512c1da5..9ed0024c0 100644 --- a/libc/arch-mips64/syscalls/setrlimit.S +++ b/libc/arch-mips64/syscalls/setrlimit.S @@ -30,5 +30,5 @@ setrlimit: .set pop .end setrlimit - .globl _C_LABEL(setrlimit64) - .equ _C_LABEL(setrlimit64), _C_LABEL(setrlimit) + .globl setrlimit64 + .equ setrlimit64, setrlimit diff --git a/libc/arch-mips64/syscalls/statfs64.S b/libc/arch-mips64/syscalls/statfs64.S index 2fd760338..accd7153e 100644 --- a/libc/arch-mips64/syscalls/statfs64.S +++ b/libc/arch-mips64/syscalls/statfs64.S @@ -30,5 +30,5 @@ statfs64: .set pop .end statfs64 - .globl _C_LABEL(statfs) - .equ _C_LABEL(statfs), _C_LABEL(statfs64) + .globl statfs + .equ statfs, statfs64 diff --git a/libc/arch-mips64/syscalls/truncate.S b/libc/arch-mips64/syscalls/truncate.S index b68f35cb5..a79cdcd56 100644 --- a/libc/arch-mips64/syscalls/truncate.S +++ b/libc/arch-mips64/syscalls/truncate.S @@ -30,5 +30,5 @@ truncate: .set pop .end truncate - .globl _C_LABEL(truncate64) - .equ _C_LABEL(truncate64), _C_LABEL(truncate) + .globl truncate64 + .equ truncate64, truncate diff --git a/libc/arch-x86/syscalls/fstat64.S b/libc/arch-x86/syscalls/fstat64.S index 3e1fdd0cf..4e85c711f 100644 --- a/libc/arch-x86/syscalls/fstat64.S +++ b/libc/arch-x86/syscalls/fstat64.S @@ -25,5 +25,5 @@ ENTRY(fstat64) ret END(fstat64) - .globl _C_LABEL(fstat) - .equ _C_LABEL(fstat), _C_LABEL(fstat64) + .globl fstat + .equ fstat, fstat64 diff --git a/libc/arch-x86/syscalls/fstatat64.S b/libc/arch-x86/syscalls/fstatat64.S index 4b98e8820..05cec7bf7 100644 --- a/libc/arch-x86/syscalls/fstatat64.S +++ b/libc/arch-x86/syscalls/fstatat64.S @@ -33,5 +33,5 @@ ENTRY(fstatat64) ret END(fstatat64) - .globl _C_LABEL(fstatat) - .equ _C_LABEL(fstatat), _C_LABEL(fstatat64) + .globl fstatat + .equ fstatat, fstatat64 diff --git a/libc/arch-x86_64/syscalls/fallocate.S b/libc/arch-x86_64/syscalls/fallocate.S index e6959ca65..9ba36b930 100644 --- a/libc/arch-x86_64/syscalls/fallocate.S +++ b/libc/arch-x86_64/syscalls/fallocate.S @@ -16,5 +16,5 @@ ENTRY(fallocate) ret END(fallocate) - .globl _C_LABEL(fallocate64) - .equ _C_LABEL(fallocate64), _C_LABEL(fallocate) + .globl fallocate64 + .equ fallocate64, fallocate diff --git a/libc/arch-x86_64/syscalls/fstat64.S b/libc/arch-x86_64/syscalls/fstat64.S index 1a2281b02..6abb14698 100644 --- a/libc/arch-x86_64/syscalls/fstat64.S +++ b/libc/arch-x86_64/syscalls/fstat64.S @@ -15,5 +15,5 @@ ENTRY(fstat64) ret END(fstat64) - .globl _C_LABEL(fstat) - .equ _C_LABEL(fstat), _C_LABEL(fstat64) + .globl fstat + .equ fstat, fstat64 diff --git a/libc/arch-x86_64/syscalls/fstatat64.S b/libc/arch-x86_64/syscalls/fstatat64.S index e429ecc27..b85506c34 100644 --- a/libc/arch-x86_64/syscalls/fstatat64.S +++ b/libc/arch-x86_64/syscalls/fstatat64.S @@ -16,5 +16,5 @@ ENTRY(fstatat64) ret END(fstatat64) - .globl _C_LABEL(fstatat) - .equ _C_LABEL(fstatat), _C_LABEL(fstatat64) + .globl fstatat + .equ fstatat, fstatat64 diff --git a/libc/arch-x86_64/syscalls/fstatfs64.S b/libc/arch-x86_64/syscalls/fstatfs64.S index fb3685a2a..983e6b75c 100644 --- a/libc/arch-x86_64/syscalls/fstatfs64.S +++ b/libc/arch-x86_64/syscalls/fstatfs64.S @@ -15,5 +15,5 @@ ENTRY(fstatfs64) ret END(fstatfs64) - .globl _C_LABEL(fstatfs) - .equ _C_LABEL(fstatfs), _C_LABEL(fstatfs64) + .globl fstatfs + .equ fstatfs, fstatfs64 diff --git a/libc/arch-x86_64/syscalls/ftruncate.S b/libc/arch-x86_64/syscalls/ftruncate.S index 80cbe79ba..437b3e210 100644 --- a/libc/arch-x86_64/syscalls/ftruncate.S +++ b/libc/arch-x86_64/syscalls/ftruncate.S @@ -15,5 +15,5 @@ ENTRY(ftruncate) ret END(ftruncate) - .globl _C_LABEL(ftruncate64) - .equ _C_LABEL(ftruncate64), _C_LABEL(ftruncate) + .globl ftruncate64 + .equ ftruncate64, ftruncate diff --git a/libc/arch-x86_64/syscalls/getrlimit.S b/libc/arch-x86_64/syscalls/getrlimit.S index 0b3536c3c..6a9c9b65b 100644 --- a/libc/arch-x86_64/syscalls/getrlimit.S +++ b/libc/arch-x86_64/syscalls/getrlimit.S @@ -15,5 +15,5 @@ ENTRY(getrlimit) ret END(getrlimit) - .globl _C_LABEL(getrlimit64) - .equ _C_LABEL(getrlimit64), _C_LABEL(getrlimit) + .globl getrlimit64 + .equ getrlimit64, getrlimit diff --git a/libc/arch-x86_64/syscalls/lseek.S b/libc/arch-x86_64/syscalls/lseek.S index a06b3ec37..cf1977668 100644 --- a/libc/arch-x86_64/syscalls/lseek.S +++ b/libc/arch-x86_64/syscalls/lseek.S @@ -15,5 +15,5 @@ ENTRY(lseek) ret END(lseek) - .globl _C_LABEL(lseek64) - .equ _C_LABEL(lseek64), _C_LABEL(lseek) + .globl lseek64 + .equ lseek64, lseek diff --git a/libc/arch-x86_64/syscalls/mmap.S b/libc/arch-x86_64/syscalls/mmap.S index d6f968793..9c3fc0fc2 100644 --- a/libc/arch-x86_64/syscalls/mmap.S +++ b/libc/arch-x86_64/syscalls/mmap.S @@ -16,5 +16,5 @@ ENTRY(mmap) ret END(mmap) - .globl _C_LABEL(mmap64) - .equ _C_LABEL(mmap64), _C_LABEL(mmap) + .globl mmap64 + .equ mmap64, mmap diff --git a/libc/arch-x86_64/syscalls/pread64.S b/libc/arch-x86_64/syscalls/pread64.S index 58b317610..5828a0608 100644 --- a/libc/arch-x86_64/syscalls/pread64.S +++ b/libc/arch-x86_64/syscalls/pread64.S @@ -16,5 +16,5 @@ ENTRY(pread64) ret END(pread64) - .globl _C_LABEL(pread) - .equ _C_LABEL(pread), _C_LABEL(pread64) + .globl pread + .equ pread, pread64 diff --git a/libc/arch-x86_64/syscalls/prlimit64.S b/libc/arch-x86_64/syscalls/prlimit64.S index b451e8f06..12be53a07 100644 --- a/libc/arch-x86_64/syscalls/prlimit64.S +++ b/libc/arch-x86_64/syscalls/prlimit64.S @@ -16,5 +16,5 @@ ENTRY(prlimit64) ret END(prlimit64) - .globl _C_LABEL(prlimit) - .equ _C_LABEL(prlimit), _C_LABEL(prlimit64) + .globl prlimit + .equ prlimit, prlimit64 diff --git a/libc/arch-x86_64/syscalls/pwrite64.S b/libc/arch-x86_64/syscalls/pwrite64.S index 96215ce35..1ada9d9a1 100644 --- a/libc/arch-x86_64/syscalls/pwrite64.S +++ b/libc/arch-x86_64/syscalls/pwrite64.S @@ -16,5 +16,5 @@ ENTRY(pwrite64) ret END(pwrite64) - .globl _C_LABEL(pwrite) - .equ _C_LABEL(pwrite), _C_LABEL(pwrite64) + .globl pwrite + .equ pwrite, pwrite64 diff --git a/libc/arch-x86_64/syscalls/sendfile.S b/libc/arch-x86_64/syscalls/sendfile.S index b56f487e9..72e5de49e 100644 --- a/libc/arch-x86_64/syscalls/sendfile.S +++ b/libc/arch-x86_64/syscalls/sendfile.S @@ -16,5 +16,5 @@ ENTRY(sendfile) ret END(sendfile) - .globl _C_LABEL(sendfile64) - .equ _C_LABEL(sendfile64), _C_LABEL(sendfile) + .globl sendfile64 + .equ sendfile64, sendfile diff --git a/libc/arch-x86_64/syscalls/setrlimit.S b/libc/arch-x86_64/syscalls/setrlimit.S index e445ec0dc..dd393aeaa 100644 --- a/libc/arch-x86_64/syscalls/setrlimit.S +++ b/libc/arch-x86_64/syscalls/setrlimit.S @@ -15,5 +15,5 @@ ENTRY(setrlimit) ret END(setrlimit) - .globl _C_LABEL(setrlimit64) - .equ _C_LABEL(setrlimit64), _C_LABEL(setrlimit) + .globl setrlimit64 + .equ setrlimit64, setrlimit diff --git a/libc/arch-x86_64/syscalls/statfs64.S b/libc/arch-x86_64/syscalls/statfs64.S index fd6d54f70..9341d433d 100644 --- a/libc/arch-x86_64/syscalls/statfs64.S +++ b/libc/arch-x86_64/syscalls/statfs64.S @@ -15,5 +15,5 @@ ENTRY(statfs64) ret END(statfs64) - .globl _C_LABEL(statfs) - .equ _C_LABEL(statfs), _C_LABEL(statfs64) + .globl statfs + .equ statfs, statfs64 diff --git a/libc/arch-x86_64/syscalls/truncate.S b/libc/arch-x86_64/syscalls/truncate.S index 5e5eb8eaf..dfb66871c 100644 --- a/libc/arch-x86_64/syscalls/truncate.S +++ b/libc/arch-x86_64/syscalls/truncate.S @@ -15,5 +15,5 @@ ENTRY(truncate) ret END(truncate) - .globl _C_LABEL(truncate64) - .equ _C_LABEL(truncate64), _C_LABEL(truncate) + .globl truncate64 + .equ truncate64, truncate diff --git a/libc/tools/gensyscalls.py b/libc/tools/gensyscalls.py index 30590cd8e..6388ee18d 100755 --- a/libc/tools/gensyscalls.py +++ b/libc/tools/gensyscalls.py @@ -48,8 +48,8 @@ ENTRY(%(func)s) function_alias = """ - .globl _C_LABEL(%(alias)s) - .equ _C_LABEL(%(alias)s), _C_LABEL(%(func)s) + .globl %(alias)s + .equ %(alias)s, %(func)s """