aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/trylink10
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/trylink b/scripts/trylink
index 15435f009..129570a60 100755
--- a/scripts/trylink
+++ b/scripts/trylink
@@ -209,6 +209,16 @@ else
209 # *(.bss SORT_BY_ALIGNMENT(.bss.*) .gnu.linkonce.b.*) 209 # *(.bss SORT_BY_ALIGNMENT(.bss.*) .gnu.linkonce.b.*)
210 # This will eliminate most of the padding (~3kb). 210 # This will eliminate most of the padding (~3kb).
211 # Hmm, "ld --sort-section alignment" should do it too. 211 # Hmm, "ld --sort-section alignment" should do it too.
212 #
213 # There is a ld hack which is meant to decrease disk usage
214 # at the cost of more RAM usage (??!!) in standard ld script:
215 # /* Adjust the address for the data segment. We want to adjust up to
216 # the same address within the page on the next page up. */
217 # . = ALIGN (0x1000) - ((0x1000 - .) & (0x1000 - 1)); . = DATA_SEGMENT_ALIGN (0x1000, 0x1000);
218 # Replace it with:
219 # . = ALIGN (0x1000); . = DATA_SEGMENT_ALIGN (0x1000, 0x1000);
220 # to unconditionally align .data to the next page boundary,
221 # instead of "next page, plus current offset in this page"
212 try $CC $CFLAGS $LDFLAGS \ 222 try $CC $CFLAGS $LDFLAGS \
213 -o $EXE \ 223 -o $EXE \
214 $SORT_COMMON \ 224 $SORT_COMMON \