summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-03-12 22:55:18 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-03-12 22:55:18 +0800
commit1326e7d4508ada7f152896829e9f0407dbd390a0 (patch)
treefd9568a6a80da1e5c0a17e786d5acf3687e8db18
parentef64f04a120fc991ff5ffe58e2d2655c1c464f02 (diff)
downloadpttbbs-1326e7d4508ada7f152896829e9f0407dbd390a0.tar
pttbbs-1326e7d4508ada7f152896829e9f0407dbd390a0.tar.gz
pttbbs-1326e7d4508ada7f152896829e9f0407dbd390a0.tar.bz2
pttbbs-1326e7d4508ada7f152896829e9f0407dbd390a0.tar.lz
pttbbs-1326e7d4508ada7f152896829e9f0407dbd390a0.tar.xz
pttbbs-1326e7d4508ada7f152896829e9f0407dbd390a0.tar.zst
pttbbs-1326e7d4508ada7f152896829e9f0407dbd390a0.zip
ld --sort-common, reduce bss section align overhead about 300~400 bytes
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2610 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/mbbsd/Makefile b/mbbsd/Makefile
index 1c4b6ee6..863a053d 100644
--- a/mbbsd/Makefile
+++ b/mbbsd/Makefile
@@ -20,6 +20,11 @@ OBJS+= random.o time.o
DIETCC= diet -Os
.endif
+# reduce .bss align overhead
+.if !defined(DEBUG)
+LDFLAGS+=-Wl,--sort-common
+.endif
+
.if defined(MERGEBBS)
CFLAGS+= -DMERGEBBS
OBJS+= merge.o