aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2019-02-04 10:04:12 -0800
committerH. Peter Anvin <hpa@zytor.com>2019-02-04 10:04:12 -0800
commit729ae285595d313dfe0fa4eb339f95947c778630 (patch)
tree272d907d4e099f4f8205a1d301529c6332dc652d
parent0e54ff788782b5de767a4c9de0919c71474ead4a (diff)
downloadsyslinux-729ae285595d313dfe0fa4eb339f95947c778630.tar.gz
syslinux-729ae285595d313dfe0fa4eb339f95947c778630.tar.xz
syslinux-729ae285595d313dfe0fa4eb339f95947c778630.zip
libcc: move libgcc files into arch-specific directories
We would compile these for for x86-64 even though they are i386-specific; the resulting code was meaningless but nevertheless included in the output. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r--com32/lib/i386/libgcc/__ashldi3.S (renamed from com32/lib/libgcc/__ashldi3.S)0
-rw-r--r--com32/lib/i386/libgcc/__ashrdi3.S (renamed from com32/lib/libgcc/__ashrdi3.S)0
-rw-r--r--com32/lib/i386/libgcc/__divdi3.c (renamed from com32/lib/libgcc/__divdi3.c)0
-rw-r--r--com32/lib/i386/libgcc/__lshrdi3.S (renamed from com32/lib/libgcc/__lshrdi3.S)0
-rw-r--r--com32/lib/i386/libgcc/__moddi3.c (renamed from com32/lib/libgcc/__moddi3.c)0
-rw-r--r--com32/lib/i386/libgcc/__muldi3.S (renamed from com32/lib/libgcc/__muldi3.S)0
-rw-r--r--com32/lib/i386/libgcc/__negdi2.S (renamed from com32/lib/libgcc/__negdi2.S)0
-rw-r--r--com32/lib/i386/libgcc/__udivdi3.c (renamed from com32/lib/libgcc/__udivdi3.c)0
-rw-r--r--com32/lib/i386/libgcc/__udivmoddi4.c (renamed from com32/lib/libgcc/__udivmoddi4.c)0
-rw-r--r--com32/lib/i386/libgcc/__umoddi3.c (renamed from com32/lib/libgcc/__umoddi3.c)0
-rw-r--r--mk/lib.mk11
11 files changed, 3 insertions, 8 deletions
diff --git a/com32/lib/libgcc/__ashldi3.S b/com32/lib/i386/libgcc/__ashldi3.S
index f2cc11cb..f2cc11cb 100644
--- a/com32/lib/libgcc/__ashldi3.S
+++ b/com32/lib/i386/libgcc/__ashldi3.S
diff --git a/com32/lib/libgcc/__ashrdi3.S b/com32/lib/i386/libgcc/__ashrdi3.S
index 3f9c5207..3f9c5207 100644
--- a/com32/lib/libgcc/__ashrdi3.S
+++ b/com32/lib/i386/libgcc/__ashrdi3.S
diff --git a/com32/lib/libgcc/__divdi3.c b/com32/lib/i386/libgcc/__divdi3.c
index 97c77950..97c77950 100644
--- a/com32/lib/libgcc/__divdi3.c
+++ b/com32/lib/i386/libgcc/__divdi3.c
diff --git a/com32/lib/libgcc/__lshrdi3.S b/com32/lib/i386/libgcc/__lshrdi3.S
index eee3aacb..eee3aacb 100644
--- a/com32/lib/libgcc/__lshrdi3.S
+++ b/com32/lib/i386/libgcc/__lshrdi3.S
diff --git a/com32/lib/libgcc/__moddi3.c b/com32/lib/i386/libgcc/__moddi3.c
index 4fc55884..4fc55884 100644
--- a/com32/lib/libgcc/__moddi3.c
+++ b/com32/lib/i386/libgcc/__moddi3.c
diff --git a/com32/lib/libgcc/__muldi3.S b/com32/lib/i386/libgcc/__muldi3.S
index 424787c8..424787c8 100644
--- a/com32/lib/libgcc/__muldi3.S
+++ b/com32/lib/i386/libgcc/__muldi3.S
diff --git a/com32/lib/libgcc/__negdi2.S b/com32/lib/i386/libgcc/__negdi2.S
index 37b0d2d4..37b0d2d4 100644
--- a/com32/lib/libgcc/__negdi2.S
+++ b/com32/lib/i386/libgcc/__negdi2.S
diff --git a/com32/lib/libgcc/__udivdi3.c b/com32/lib/i386/libgcc/__udivdi3.c
index db5b3594..db5b3594 100644
--- a/com32/lib/libgcc/__udivdi3.c
+++ b/com32/lib/i386/libgcc/__udivdi3.c
diff --git a/com32/lib/libgcc/__udivmoddi4.c b/com32/lib/i386/libgcc/__udivmoddi4.c
index dd602631..dd602631 100644
--- a/com32/lib/libgcc/__udivmoddi4.c
+++ b/com32/lib/i386/libgcc/__udivmoddi4.c
diff --git a/com32/lib/libgcc/__umoddi3.c b/com32/lib/i386/libgcc/__umoddi3.c
index b897ee03..b897ee03 100644
--- a/com32/lib/libgcc/__umoddi3.c
+++ b/com32/lib/i386/libgcc/__umoddi3.c
diff --git a/mk/lib.mk b/mk/lib.mk
index 54f1fd54..deb2c192 100644
--- a/mk/lib.mk
+++ b/mk/lib.mk
@@ -128,10 +128,8 @@ LIBENTRY_OBJS = \
exit.o
LIBGCC_OBJS = \
- libgcc/__ashldi3.o libgcc/__udivdi3.o \
- libgcc/__negdi2.o libgcc/__ashrdi3.o libgcc/__lshrdi3.o \
- libgcc/__muldi3.o libgcc/__udivmoddi4.o libgcc/__umoddi3.o \
- libgcc/__divdi3.o libgcc/__moddi3.o
+ $(patsubst $(com32)/lib/%.c,%.o,$(wildcard $(com32)/lib/$(ARCH)/libgcc/*.c)) \
+ $(patsubst $(com32)/lib/%.S,%.o,$(wildcard $(com32)/lib/$(ARCH)/libgcc/*.S))
LIBCONSOLE_OBJS = \
\
@@ -197,11 +195,8 @@ CORELIBOBJS = \
sys/err_read.o sys/err_write.o sys/null_read.o \
sys/stdcon_write.o \
syslinux/memscan.o strrchr.o strcat.o \
- libgcc/__ashldi3.o libgcc/__udivdi3.o \
- libgcc/__negdi2.o libgcc/__ashrdi3.o libgcc/__lshrdi3.o \
- libgcc/__muldi3.o libgcc/__udivmoddi4.o libgcc/__umoddi3.o \
- libgcc/__divdi3.o libgcc/__moddi3.o \
syslinux/debug.o \
+ $(LIBGCC_OBJS) \
$(LIBENTRY_OBJS) \
$(LIBMODULE_OBJS)