From d0625dc2ccd0f720b225e1f50b618845b5ca9b4b Mon Sep 17 00:00:00 2001 From: midipix Date: Fri, 5 Jun 2015 02:20:20 -0400 Subject: weak symbols: remove the previously used workaround, as it is no longer needed. This change follows corresponding work on, as well as patches to binutils and cbb-gcc. --- src/env/nt64/__environ.s | 11 ----------- src/internal/nt32/libc.c | 7 ------- src/internal/nt64/libc.c | 7 ------- src/stdio/nt32/fflush.c | 6 ------ src/stdio/nt64/fflush.c | 6 ------ 5 files changed, 37 deletions(-) delete mode 100644 src/env/nt64/__environ.s delete mode 100644 src/internal/nt32/libc.c delete mode 100644 src/internal/nt64/libc.c delete mode 100644 src/stdio/nt32/fflush.c delete mode 100644 src/stdio/nt64/fflush.c (limited to 'src') diff --git a/src/env/nt64/__environ.s b/src/env/nt64/__environ.s deleted file mode 100644 index 28ac875..0000000 --- a/src/env/nt64/__environ.s +++ /dev/null @@ -1,11 +0,0 @@ -.globl ___environ -.globl __environ -.globl _environ -.globl environ - -.data -___environ: -__environ: -_environ: -environ: - .quad 0 diff --git a/src/internal/nt32/libc.c b/src/internal/nt32/libc.c deleted file mode 100644 index 43face8..0000000 --- a/src/internal/nt32/libc.c +++ /dev/null @@ -1,7 +0,0 @@ -#include "../libc.h" - -/* todo: teach the linker to export weak symbols */ -#undef weak_alias -#define weak_alias(old,new) extern __typeof(old) new __attribute__((alias(#old))) - -#include "../libc.c" diff --git a/src/internal/nt64/libc.c b/src/internal/nt64/libc.c deleted file mode 100644 index 43face8..0000000 --- a/src/internal/nt64/libc.c +++ /dev/null @@ -1,7 +0,0 @@ -#include "../libc.h" - -/* todo: teach the linker to export weak symbols */ -#undef weak_alias -#define weak_alias(old,new) extern __typeof(old) new __attribute__((alias(#old))) - -#include "../libc.c" diff --git a/src/stdio/nt32/fflush.c b/src/stdio/nt32/fflush.c deleted file mode 100644 index 4c88f20..0000000 --- a/src/stdio/nt32/fflush.c +++ /dev/null @@ -1,6 +0,0 @@ -#include "../fflush.c" - -int __fflush_unlocked_impl(FILE *f) -{ - return __fflush_unlocked(f); -} diff --git a/src/stdio/nt64/fflush.c b/src/stdio/nt64/fflush.c deleted file mode 100644 index 4c88f20..0000000 --- a/src/stdio/nt64/fflush.c +++ /dev/null @@ -1,6 +0,0 @@ -#include "../fflush.c" - -int __fflush_unlocked_impl(FILE *f) -{ - return __fflush_unlocked(f); -} -- cgit v1.2.3